Package com.rs.seagull.emulator.api
Interface Attributed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBackgroundColor()Get the background color.intgetForegroundColor()Get the foreground color.doublegetHorizontalScale()Get the horizontal scale.doublegetVerticalScale()Get the vertical scale.booleanhasAttribute(String attribute)Check if the provided boolean attribute is set.booleanisAvailable(String attribute)Check if the provided attribute is available as attribute for the emulator type, of which thisAttributedis a part.booleanisBlink()Check if the 'blink' attribute is set.booleanisBold()Check if the 'bold' attribute is set.booleanisBright()Check if the 'bright' attribute is set.booleanisColumnSeparator()Check if the 'column separator' attribute is set.booleanisDim()Check if the 'dim' attribute is set.booleanisInvisible()Check if the 'invisible' attribute is set.booleanisReverse()Check if the 'reverse' attribute is set.booleanisUnderline()Check if the 'underline' attribute is set.booleanisWriteProtect()Check if the 'write protect' attribute is set.
-
-
-
Method Detail
-
getForegroundColor
int getForegroundColor()
Get the foreground color. The values, per emulator type, are listed inColors. To check if retrieving a foreground color is supported for the emulator type, of which thisAttributedis a part, callisAvailable(String)with argumentAttributes.FOREGROUND_COLOR. The foreground color is supported by 5250, 3270 and AnsiPlus.- Returns:
- the foreground color
-
getBackgroundColor
int getBackgroundColor()
Get the background color. The values, per emulator type, are listed inColors. To check if retrieving a background color is supported for the emulator type, of which thisAttributedis a part, callisAvailable(String)with argumentAttributes.BACKGROUND_COLOR. The foreground color is supported by 3270 and AnsiPlus. For 5250,Colors.Ibm5250.UNDEFINED. is returned.- Returns:
- the background color
-
isAvailable
boolean isAvailable(String attribute)
Check if the provided attribute is available as attribute for the emulator type, of which thisAttributedis a part. Possible attributes are defined inAttributes. If the provided attribute is not recognized,falseis returned.- Parameters:
attribute- the provided attribute- Returns:
trueif the provided attribute is available
-
hasAttribute
boolean hasAttribute(String attribute)
Check if the provided boolean attribute is set. If the provided attribute is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if the provided attribute is supported, callisAvailable(String). Possible attributes are defined inAttributes.- Parameters:
attribute- the provided attribute- Returns:
trueif the provided attribute is supported and set
-
isBlink
boolean isBlink()
Check if the 'blink' attribute is set. If 'blink' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'blink' is supported, callisAvailable(String)with argumentAttributes.BLINK. Blink is supported by 5250, 3270 and AnsiPlus.- Returns:
trueif 'blink' is supported and set
-
isBold
boolean isBold()
Check if the 'bold' attribute is set. If 'bold' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'bold' is supported, callisAvailable(String)with argumentAttributes.BOLD. Bold is supported by 3270 and AnsiPlus.- Returns:
trueif 'bold' is supported and set
-
isBright
boolean isBright()
Check if the 'bright' attribute is set. If 'bright' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'bright' is supported, callisAvailable(String)with argumentAttributes.BRIGHT. Bright is supported by 3270.- Returns:
trueif 'bright' is supported and set
-
isColumnSeparator
boolean isColumnSeparator()
Check if the 'column separator' attribute is set. If 'column separator' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'column separator' is supported, callisAvailable(String)with argumentAttributes.COLUMN_SEPARATOR. Column Separator is supported by 5250.- Returns:
trueif 'column separator' is supported and set
-
isDim
boolean isDim()
Check if the 'dim' attribute is set. If 'dim' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'dim' is supported, callisAvailable(String)with argumentAttributes.DIM. Dim is supported by AnsiPlus.- Returns:
trueif 'dim' is supported and set
-
isUnderline
boolean isUnderline()
Check if the 'underline' attribute is set. If 'underline' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'underline' is supported, callisAvailable(String)with argumentAttributes.UNDERLINE. Underline is supported by 5250, 3270 and AnsiPlus.- Returns:
trueif 'underline' is supported and set
-
isWriteProtect
boolean isWriteProtect()
Check if the 'write protect' attribute is set. If 'write protect' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'write protect' is supported, callisAvailable(String)with argumentAttributes.WRITE_PROTECT. Write protect is supported by 3270.- Returns:
trueif 'write protect' is supported and set
-
isReverse
boolean isReverse()
Check if the 'reverse' attribute is set. If 'reverse' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'reverse' is supported, callisAvailable(String)with argumentAttributes.REVERSE. Reverse is supported by 5250, 3270 and AnsiPlus.- Returns:
trueif 'reverse' is supported and set
-
isInvisible
boolean isInvisible()
Check if the 'invisible' attribute is set. If 'invisible' is not supported for the emulator type, of which thisAttributedis a part,falsewill be returned. To check if 'invisible' is supported, callisAvailable(String)with argumentAttributes.INVISIBLE. Invisible is supported by 5250, 3270.- Returns:
trueif 'invisible' is supported and set
-
getHorizontalScale
double getHorizontalScale()
Get the horizontal scale. To check if retrieving a horizontal scale is supported for the emulator type, of which thisAttributedis a part, callisAvailable(String)with argumentAttributes.HORIZONTAL_SCALE. Horizontal scale is supported by AnsiPlus.- Returns:
- the horizontal scale
-
getVerticalScale
double getVerticalScale()
Get the vertical scale. To check if retrieving a vertical scale is supported for the emulator type, of which thisAttributedis a part, callisAvailable(String)with argumentAttributes.VERTICAL_SCALE. Vertical scale is supported by AnsiPlus.- Returns:
- the vertical scale
-
-