com.jagacy.ui
Class FeatureHelper

java.lang.Object
  extended bycom.jagacy.ui.FeatureHelper

public class FeatureHelper
extends java.lang.Object

Determines the attributes of a feature.

Since:
Jagacy 3270 1.4, Jagacy VT 1.1
Author:
Robert M. Preston

Field Summary
static short BLINK_MARK
           
static short BOLD_MARK
           
static short COLOR_BLACK
           
static short COLOR_BLUE
           
static short COLOR_BOLD
           
static short COLOR_CYAN
           
static short COLOR_DARK_GRAY
           
static short COLOR_DEFAULT
           
static short COLOR_GREEN
           
static short COLOR_LIGHT_GRAY
           
static short COLOR_MAGENTA
           
static short COLOR_ORANGE
           
static short COLOR_PINK
           
static short COLOR_RED
           
static short COLOR_TURQUOISE
           
static short COLOR_WHITE
           
static short COLOR_YELLOW
           
static short DETECTABLE_MARK
           
static short FEATURE
           
static short FEATURE_MASK
           
static short HIDDEN_MASK
           
static short MODIFIED
           
static short NUMERIC_MARK
           
static short PROTECTED
           
static short REVERSE_MARK
           
static short UNDERLINE_MARK
           
 
Constructor Summary
protected FeatureHelper()
          Creates a FeatureHelper.
 
Method Summary
static short getBackground(short feature)
          Returns the background of the feature.
static short getForeground(short feature)
          Returns the foreground of the feature.
static boolean isBlink(short feature)
          Tests if location is blinking.
static boolean isBold(short feature)
          Tests if location is bolded.
static boolean isFeature(short feature)
          Tests if location has a feature.
static boolean isHidden(short feature)
          Tests if location is hidden.
static boolean isModified(short feature)
          Tests if location is modified.
static boolean isNumeric(short feature)
          Tests if location is numeric.
static boolean isProtected(short feature)
          Tests if location is protected.
static boolean isReverse(short feature)
          Tests if location is reversed.
static boolean isUnderline(short feature)
          Tests if location is underlined.
static short setBackground(short feature, short color)
          Sets the background of the feature.
static short setForeground(short feature, short color)
          Sets the foreground of the feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODIFIED

public static final short MODIFIED
See Also:
Constant Field Values

PROTECTED

public static final short PROTECTED
See Also:
Constant Field Values

FEATURE

public static final short FEATURE
See Also:
Constant Field Values

FEATURE_MASK

public static final short FEATURE_MASK
See Also:
Constant Field Values

DETECTABLE_MARK

public static final short DETECTABLE_MARK
See Also:
Constant Field Values

NUMERIC_MARK

public static final short NUMERIC_MARK
See Also:
Constant Field Values

BOLD_MARK

public static final short BOLD_MARK
See Also:
Constant Field Values

UNDERLINE_MARK

public static final short UNDERLINE_MARK
See Also:
Constant Field Values

BLINK_MARK

public static final short BLINK_MARK
See Also:
Constant Field Values

REVERSE_MARK

public static final short REVERSE_MARK
See Also:
Constant Field Values

HIDDEN_MASK

public static final short HIDDEN_MASK
See Also:
Constant Field Values

COLOR_BLACK

public static final short COLOR_BLACK
See Also:
Constant Field Values

COLOR_RED

public static final short COLOR_RED
See Also:
Constant Field Values

COLOR_GREEN

public static final short COLOR_GREEN
See Also:
Constant Field Values

COLOR_YELLOW

public static final short COLOR_YELLOW
See Also:
Constant Field Values

COLOR_BLUE

public static final short COLOR_BLUE
See Also:
Constant Field Values

COLOR_MAGENTA

public static final short COLOR_MAGENTA
See Also:
Constant Field Values

COLOR_CYAN

public static final short COLOR_CYAN
See Also:
Constant Field Values

COLOR_WHITE

public static final short COLOR_WHITE
See Also:
Constant Field Values

COLOR_TURQUOISE

public static final short COLOR_TURQUOISE
See Also:
Constant Field Values

COLOR_PINK

public static final short COLOR_PINK
See Also:
Constant Field Values

COLOR_ORANGE

public static final short COLOR_ORANGE
See Also:
Constant Field Values

COLOR_LIGHT_GRAY

public static final short COLOR_LIGHT_GRAY
See Also:
Constant Field Values

COLOR_DARK_GRAY

public static final short COLOR_DARK_GRAY
See Also:
Constant Field Values

COLOR_BOLD

public static final short COLOR_BOLD
See Also:
Constant Field Values

COLOR_DEFAULT

public static final short COLOR_DEFAULT
See Also:
Constant Field Values
Constructor Detail

FeatureHelper

protected FeatureHelper()
Creates a FeatureHelper.

Method Detail

isModified

public static boolean isModified(short feature)
Tests if location is modified.

Parameters:
feature - Location feature.
Returns:
true if location is modified

isProtected

public static boolean isProtected(short feature)
Tests if location is protected.

Parameters:
feature - Location feature.
Returns:
true if location is protected; false otherwise.

isHidden

public static boolean isHidden(short feature)
Tests if location is hidden.

Parameters:
feature - Location feature.
Returns:
true if location is hidden; false otherwise.

isReverse

public static boolean isReverse(short feature)
Tests if location is reversed.

Parameters:
feature - Location feature.
Returns:
true if location is reversed; false otherwise.

isBlink

public static boolean isBlink(short feature)
Tests if location is blinking.

Parameters:
feature - Location feature.
Returns:
true if location is blinking; false otherwise.

isBold

public static boolean isBold(short feature)
Tests if location is bolded.

Parameters:
feature - Location feature.
Returns:
true if location is bolded; false otherwise.

isUnderline

public static boolean isUnderline(short feature)
Tests if location is underlined.

Parameters:
feature - Location feature.
Returns:
true if location is underlined; false otherwise.

isNumeric

public static boolean isNumeric(short feature)
Tests if location is numeric.

Parameters:
feature - Location feature.
Returns:
true if location is numeric; false otherwise.

isFeature

public static boolean isFeature(short feature)
Tests if location has a feature.

Parameters:
feature - Location feature.
Returns:
true if location has a feature; false otherwise.

getForeground

public static short getForeground(short feature)
Returns the foreground of the feature.

Parameters:
feature - The feature.
Returns:
The foreground.

getBackground

public static short getBackground(short feature)
Returns the background of the feature.

Parameters:
feature - The feature.
Returns:
The background.

setForeground

public static short setForeground(short feature,
                                  short color)
Sets the foreground of the feature.

Parameters:
feature - The feature.
color - The foreground color.
Returns:
The feature.

setBackground

public static short setBackground(short feature,
                                  short color)
Sets the background of the feature.

Parameters:
feature - The feature.
color - The background color.
Returns:
The feature.