Package com.rs.seagull.emulator.api
Interface Attributed
public interface Attributed
Implementors of this interface have attributes.
- Version:
- $Id$
- Author:
- MRomijn
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the background color.int
Get the foreground color.double
Get the horizontal scale.double
Get the vertical scale.boolean
hasAttribute
(String attribute) Check if the provided boolean attribute is set.boolean
isAvailable
(String attribute) Check if the provided attribute is available as attribute for the emulator type, of which thisAttributed
is a part.boolean
isBlink()
Check if the 'blink' attribute is set.boolean
isBold()
Check if the 'bold' attribute is set.boolean
isBright()
Check if the 'bright' attribute is set.boolean
Check if the 'column separator' attribute is set.boolean
isDim()
Check if the 'dim' attribute is set.boolean
Check if the 'invisible' attribute is set.boolean
Check if the 'reverse' attribute is set.boolean
Check if the 'underline' attribute is set.boolean
Check if the 'write protect' attribute is set.
-
Method Details
-
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 thisAttributed
is 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 thisAttributed
is 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
Check if the provided attribute is available as attribute for the emulator type, of which thisAttributed
is a part. Possible attributes are defined inAttributes
. If the provided attribute is not recognized,false
is returned.- Parameters:
attribute
- the provided attribute- Returns:
true
if the provided attribute is available
-
hasAttribute
Check if the provided boolean attribute is set. If the provided attribute is not supported for the emulator type, of which thisAttributed
is a part,false
will be returned. To check if the provided attribute is supported, callisAvailable(String)
. Possible attributes are defined inAttributes
.- Parameters:
attribute
- the provided attribute- Returns:
true
if 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 thisAttributed
is a part,false
will be returned. To check if 'blink' is supported, callisAvailable(String)
with argumentAttributes.BLINK
. Blink is supported by 5250, 3270 and AnsiPlus.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'bold' is supported, callisAvailable(String)
with argumentAttributes.BOLD
. Bold is supported by 3270 and AnsiPlus.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'bright' is supported, callisAvailable(String)
with argumentAttributes.BRIGHT
. Bright is supported by 3270.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'column separator' is supported, callisAvailable(String)
with argumentAttributes.COLUMN_SEPARATOR
. Column Separator is supported by 5250.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'dim' is supported, callisAvailable(String)
with argumentAttributes.DIM
. Dim is supported by AnsiPlus.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'underline' is supported, callisAvailable(String)
with argumentAttributes.UNDERLINE
. Underline is supported by 5250, 3270 and AnsiPlus.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'write protect' is supported, callisAvailable(String)
with argumentAttributes.WRITE_PROTECT
. Write protect is supported by 3270.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'reverse' is supported, callisAvailable(String)
with argumentAttributes.REVERSE
. Reverse is supported by 5250, 3270 and AnsiPlus.- Returns:
true
if '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 thisAttributed
is a part,false
will be returned. To check if 'invisible' is supported, callisAvailable(String)
with argumentAttributes.INVISIBLE
. Invisible is supported by 5250, 3270.- Returns:
true
if '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 thisAttributed
is 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 thisAttributed
is a part, callisAvailable(String)
with argumentAttributes.VERTICAL_SCALE
. Vertical scale is supported by AnsiPlus.- Returns:
- the vertical scale
-