com.ibm.eNetwork.beans.HOD
Class ColorRemap

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.ibm.eNetwork.HOD.common.gui.HPanel
                                |
                                +--com.ibm.eNetwork.beans.HOD.HODPanelBean
                                      |
                                      +--com.ibm.eNetwork.beans.HOD.ColorRemap
All Implemented Interfaces:
javax.accessibility.Accessible, java.lang.Cloneable, com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf, java.util.EventListener, java.io.Externalizable, com.ibm.eNetwork.HOD.common.HODConstants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, ScreenMouseListener, java.io.Serializable, TraceProducer

public class ColorRemap
extends HODPanelBean
implements com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf

HOD-unique In Host On-Demand, the ColorRemap Bean allows users to remap the Screen or Terminal colors. It has sixteen foreground color properties and eight background color properties. When a color is changed through the ColorRemap Bean, a ColorRemapEvent is fired to the registered ColorRemapListeners.

ColorRemap also listens to ScreenMouseEvents. When Screen or Terminal fires ScreenMouseEvents, ColorRemap automatically displays the correct foreground and background colors for that location.

Properties

The ColorRemap graphical interface is the best way to modify its color map properties, so ColorRemap does not expose its color properties in the standard property sheet.

Events Fired

Event Type Fired To Event Handler Method
ColorRemapEvent - Fired when a color is remapped. Terminal, Screen remapColor(ColorRemapEvent)
PropertyChangeEvent - Fired when a property of the Bean is changed. Any PropertyChangeListener propertyChange(PropertyChangeEvent)

Events Accepted

Event Type Fired From Event Handler Method
ScreenMouseEvent Terminal, Screen mouseEvent(ScreenMouseEvent evt)

Class Inheritance

The libraries containing this class are available in two versions: java2 and jdk1.1.8. This class document represents a compilation using Java 2 and its core libraries. The class inheritance scheme is shown above.

The alternative library was compiled with JDK 1.1.8. The result is a slightly different derivation, illustrated in this following class inheritance fragment.

         |
         +--java.awt.Container
               |
               +--java.awt.Panel
                     |
                     +--com.ibm.eNetwork.HOD.common.gui.HPanel
                           |
                           +--
 

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
static java.lang.String ANSI_BLUE
          ANSI Attribute, Blue.  Not implemented at this time.
static java.lang.String ANSI_GREEN
          ANSI Attribute, Green.  Not implemented at this time.
static java.lang.String ANSI_PINK
          ANSI Attribute, Pink.  Not implemented at this time.
static java.lang.String ANSI_RED
          ANSI Attribute, Red.  Not implemented at this time.
static java.lang.String ANSI_TURQUOISE
          ANSI Attribute, Turquoise.  Not implemented at this time.
static java.lang.String ANSI_WHITE
          ANSI Attribute, White.  Not implemented at this time.
static java.lang.String ANSI_YELLOW
          ANSI Attribute, Yellow.  Not implemented at this time.
static java.lang.String BASE_BOLD
          Base Color, Bold.
static java.lang.String BASE_HISTORY_BOLD
          Base Color, History, Bold.
static java.lang.String BASE_HISTORY_NORMAL
          Base Color, History, Normal.
static java.lang.String BASE_INTENSIFIED_PROTECTED
          Base Attribute, Intensified, Protected field.
static java.lang.String BASE_INTENSIFIED_UNPROTECTED
          Base Attribute, Intensified, Unprotected field.
static java.lang.String BASE_NORMAL
          Base Color, Normal.
static java.lang.String BASE_NORMAL_PROTECTED
          Base Attribute, Normal, Protected field.
static java.lang.String BASE_NORMAL_UNPROTECTED
          Base Attribute, Normal, Unprotected field.
static java.lang.String EXT_BG_BLUE
          Extended Attribute, Blue.
static java.lang.String EXT_BG_DEFAULT
          Extended Attribute, Default.
static java.lang.String EXT_BG_DEFAULT_INTENSIFIED
          Extended Attribute, Default Intensified.
static java.lang.String EXT_BG_GREEN
          Extended Attribute, Green.
static java.lang.String EXT_BG_PINK
          Extended Attribute, Pink.
static java.lang.String EXT_BG_RED
          Extended Attribute, Red.
static java.lang.String EXT_BG_TURQUOISE
          Extended Attribute, Turquoise.
static java.lang.String EXT_BG_WHITE
          Extended Attribute, White.
static java.lang.String EXT_BG_YELLOW
          Extended Attribute, Yellow.
static java.lang.String FIELD_BLUE
          Field Color, Blue.
static java.lang.String FIELD_GREEN
          Field Color, Green.
static java.lang.String FIELD_PINK
          Field Color, Pink.
static java.lang.String FIELD_RED
          Field Color, Red.
static java.lang.String FIELD_TURQUOISE
          Field Color, Turquoise.
static java.lang.String FIELD_WHITE
          Field Color, White.
static java.lang.String FIELD_YELLOW
          Field Color, Yellow.
static java.lang.String GR_BLACK
          Graphic Attribute, Black.
static java.lang.String GR_BLUE
          Graphic Attribute, Blue.
static java.lang.String GR_BROWN
          Graphic Attribute, Brown.
static java.lang.String GR_DARKBLUE
          Graphic Attribute, Dark Blue.
static java.lang.String GR_DARKGREEN
          Graphic Attribute, Dark Green.
static java.lang.String GR_DARKTURQUOISE
          Graphic Attribute, Dark Turquoise.
static java.lang.String GR_DEFAULT
          Graphic Attribute, Default.
static java.lang.String GR_GREEN
          Graphic Attribute, Green.
static java.lang.String GR_GREY
          Graphic Attribute, Grey.
static java.lang.String GR_MUSTARD
          Graphic Attribute, Mustard.
static java.lang.String GR_ORANGE
          Graphic Attribute, Orange.
static java.lang.String GR_PINK
          Graphic Attribute, Pink.
static java.lang.String GR_PURPLE
          Graphic Attribute, Purple.
static java.lang.String GR_RED
          Graphic Attribute, Red.
static java.lang.String GR_TURQUOISE
          Graphic Attribute, Turquise.
static java.lang.String GR_WHITE
          Graphic Attribute, White.
static java.lang.String GR_YELLOW
          Graphic Attribute, Yellow.
static java.lang.String OIA_ATTENTION
          OIA Color, Attention Indicator.
static java.lang.String OIA_BACKGROUND
          OIA Color, OIA Background.
static java.lang.String OIA_ERROR
          OIA Color, Error Indicator.
static java.lang.String OIA_INFORMATION
          OIA Color, Information Indicator.
static java.lang.String OIA_STATUS
          OIA Color, Status Indicator.
 
Fields inherited from class com.ibm.eNetwork.beans.HOD.HODPanelBean
BEAN_VERSION_STRING, TRACE_LEVEL, TRACE_MAXIMUM, TRACE_MINIMUM, TRACE_NONE, TRACE_NORMAL
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.ibm.eNetwork.HOD.common.HODConstants
DEFAULT_WIN_FONT, HOD_ICON_EVENT, HOD_MSG_FILE, HOD_RAS_COMPID_ASSOC_PRT, HOD_RAS_COMPID_BLINKREMAP, HOD_RAS_COMPID_CODEPAGE, HOD_RAS_COMPID_COLORREMAP, HOD_RAS_COMPID_CONFIG, HOD_RAS_COMPID_FILETRANSFER, HOD_RAS_COMPID_FTP_SCREEN, HOD_RAS_COMPID_FTP_SESSION, HOD_RAS_COMPID_FTP_TERMINAL, HOD_RAS_COMPID_FUDOMA, HOD_RAS_COMPID_IMPEXP, HOD_RAS_COMPID_JNILOAD, HOD_RAS_COMPID_KEYPAD, HOD_RAS_COMPID_KEYREMAP, HOD_RAS_COMPID_MACRO, HOD_RAS_COMPID_MACROMANGR, HOD_RAS_COMPID_PRT_TERMINAL, HOD_RAS_COMPID_SCREEN, HOD_RAS_COMPID_SESSION, HOD_RAS_COMPID_SESSION_MGR, HOD_RAS_COMPID_SLP, HOD_RAS_COMPID_TERMINAL, HOD_RAS_FUNC_NAME, HOD_START_UP, HOD_TRANSFER_FILE_INFO, MOUSE_DOUBLE_CLICK_THRESHOLD, XFER_ASCII_GET_OPTIONS, XFER_ASCII_GET_OPTIONS_DEFAULT, XFER_ASCII_PUT_OPTIONS, XFER_ASCII_PUT_OPTIONS_DEFAULT, XFER_BINARY_GET_OPTIONS, XFER_BINARY_GET_OPTIONS_DEFAULT, XFER_BINARY_PUT_OPTIONS, XFER_BINARY_PUT_OPTIONS_DEFAULT, XFER_DEFAULT_OPTIONS, XFER_FILETYPE_DTA, XFER_FILETYPE_SAVF, XFER_FILETYPE_SRC, XFER_HOST_TYPE, XFER_HOST_TYPE_CICS, XFER_HOST_TYPE_CMS, XFER_HOST_TYPE_DEFAULT, XFER_HOST_TYPE_OS400, XFER_HOST_TYPE_TSO, XFER_PACKET_SIZE, XFER_PACKET_SIZE_DEFAULT, XFER_TIME_OUT_VALUE, XFER_TIME_OUT_VALUE_DEFAULT, XFER_TRANSFER_MODE, XFER_TRANSFER_MODE_ASCII, XFER_TRANSFER_MODE_BINARY, XFER_TRANSFER_MODE_DEFAULT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ColorRemap()
          Constructor that uses the default values for all properties.
ColorRemap(java.util.Properties p)
          Constructor that takes a Properties object containing the initial property settings.
 
Method Summary
 void accept()
          Accepts the current color map.
 void addColorRemapListener(ColorRemapListener l)
          add color remap listeners for receiving ColorRemapEvent notifications
 void cancel()
          Cancels any changes that have been made to the color map since the last time the accept() method was invoked.
static java.lang.String getColorString(java.awt.Color fgColor, java.awt.Color bgColor)
          Returns the HOD foreground and background color string
 java.lang.String getTraceName()
          Returns a trace identifier for this bean
 void mouseEvent(ScreenMouseEvent evt)
          ScreenMouseListener interface method.
 void removeColorRemapListener(ColorRemapListener l)
          remove color remap listeners
 void reset()
          Resets the color map to the default colors.
 void setRemapColor(java.lang.String property, java.awt.Color fgColor, java.awt.Color bgColor)
          Set the foreground and background color for the specified color remap property
 void undo()
          Undoes any changes that have been made to the color map since the last time the accept() method was invoked.
 
Methods inherited from class com.ibm.eNetwork.beans.HOD.HODPanelBean
addPropertyChangeListener, addTraceListener, addVetoableChangeListener, clone, dispose, getComponent, getFunction, getProperties, getTraceLevel, propertyChange, readExternal, removePropertyChangeListener, removeTraceListener, removeVetoableChangeListener, setProperties, setTraceLevel, toString, writeExternal
 
Methods inherited from class com.ibm.eNetwork.HOD.common.gui.HPanel
add, createAssociation, paintComponent, setAccessDesc, setAccessibleName
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf
addPropertyChangeListener, dispose, getColorRemapModel, getCurProperties, getElementValue, getMappedType, isMigrated, isModified, setFrame, setMigrated, setProperties
 

Field Detail

BASE_NORMAL_UNPROTECTED

public static final java.lang.String BASE_NORMAL_UNPROTECTED
Base Attribute, Normal, Unprotected field.

This color remap property is indended for use in changing the foreground and backgroud color for the Base Attribute, Normal, Unprotected field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

BASE_INTENSIFIED_UNPROTECTED

public static final java.lang.String BASE_INTENSIFIED_UNPROTECTED
Base Attribute, Intensified, Unprotected field.

This color remap property is indended for use in changing the foreground and backgroud color for the Base Attribute, Intensified, Unprotected field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

BASE_NORMAL_PROTECTED

public static final java.lang.String BASE_NORMAL_PROTECTED
Base Attribute, Normal, Protected field.

This color remap property is indended for use in changing the foreground and backgroud color for the Base Attribute, Normal, Protected field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

BASE_INTENSIFIED_PROTECTED

public static final java.lang.String BASE_INTENSIFIED_PROTECTED
Base Attribute, Intensified, Protected field.

This color remap property is indended for use in changing the foreground and backgroud color for the Base Attribute, Intensified, Protected field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_BLUE

public static final java.lang.String EXT_BG_BLUE
Extended Attribute, Blue.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Blue field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_GREEN

public static final java.lang.String EXT_BG_GREEN
Extended Attribute, Green.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Green field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_PINK

public static final java.lang.String EXT_BG_PINK
Extended Attribute, Pink.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Pink field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_RED

public static final java.lang.String EXT_BG_RED
Extended Attribute, Red.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Red field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_TURQUOISE

public static final java.lang.String EXT_BG_TURQUOISE
Extended Attribute, Turquoise.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Turquoise field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_WHITE

public static final java.lang.String EXT_BG_WHITE
Extended Attribute, White.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, White field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_YELLOW

public static final java.lang.String EXT_BG_YELLOW
Extended Attribute, Yellow.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Yellow field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_DEFAULT_INTENSIFIED

public static final java.lang.String EXT_BG_DEFAULT_INTENSIFIED
Extended Attribute, Default Intensified.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Default Intensified field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

EXT_BG_DEFAULT

public static final java.lang.String EXT_BG_DEFAULT
Extended Attribute, Default. 3270 Display sessions only.

This color remap property is indended for use in changing the foreground and backgroud color for the Extended Attribute, Default field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_DEFAULT

public static final java.lang.String GR_DEFAULT
Graphic Attribute, Default.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Default field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_BLUE

public static final java.lang.String GR_BLUE
Graphic Attribute, Blue.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Blue field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_RED

public static final java.lang.String GR_RED
Graphic Attribute, Red.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Red field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_PINK

public static final java.lang.String GR_PINK
Graphic Attribute, Pink.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Pink field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_GREEN

public static final java.lang.String GR_GREEN
Graphic Attribute, Green.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Green field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_TURQUOISE

public static final java.lang.String GR_TURQUOISE
Graphic Attribute, Turquise.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Turquise field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_YELLOW

public static final java.lang.String GR_YELLOW
Graphic Attribute, Yellow.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Yellow field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_WHITE

public static final java.lang.String GR_WHITE
Graphic Attribute, White.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, White field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_BLACK

public static final java.lang.String GR_BLACK
Graphic Attribute, Black.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Black field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_DARKBLUE

public static final java.lang.String GR_DARKBLUE
Graphic Attribute, Dark Blue.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Dark Blue field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_ORANGE

public static final java.lang.String GR_ORANGE
Graphic Attribute, Orange.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Orange field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_PURPLE

public static final java.lang.String GR_PURPLE
Graphic Attribute, Purple.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Purple field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_DARKGREEN

public static final java.lang.String GR_DARKGREEN
Graphic Attribute, Dark Green.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Dark Green field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_DARKTURQUOISE

public static final java.lang.String GR_DARKTURQUOISE
Graphic Attribute, Dark Turquoise.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Dark Turquoise field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_MUSTARD

public static final java.lang.String GR_MUSTARD
Graphic Attribute, Mustard.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Mustard field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_GREY

public static final java.lang.String GR_GREY
Graphic Attribute, Grey.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Grey field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

GR_BROWN

public static final java.lang.String GR_BROWN
Graphic Attribute, Brown.

This color remap property is indended for use in changing the foreground and backgroud color for the Graphic Attribute, Brown field for a 3270 display session.

3270 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

FIELD_GREEN

public static final java.lang.String FIELD_GREEN
Field Color, Green.

This color remap property is indended for use in changing the foreground and backgroud color for the green field when the 5250 session is in field-mode.

5250 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

FIELD_WHITE

public static final java.lang.String FIELD_WHITE
Field Color, White.

This color remap property is indended for use in changing the foreground and backgroud color for the white field when the 5250 session is in field-mode.

5250 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

FIELD_RED

public static final java.lang.String FIELD_RED
Field Color, Red.

This color remap property is indended for use in changing the foreground and backgroud color for the red field when the 5250 session is in field-mode.

5250 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

FIELD_TURQUOISE

public static final java.lang.String FIELD_TURQUOISE
Field Color, Turquoise.

This color remap property is indended for use in changing the foreground and backgroud color for the turquoise field when the 5250 session is in field-mode.

5250 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

FIELD_YELLOW

public static final java.lang.String FIELD_YELLOW
Field Color, Yellow.

This color remap property is indended for use in changing the foreground and backgroud color for the yellow field when the 5250 session is in field-mode.

5250 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

FIELD_PINK

public static final java.lang.String FIELD_PINK
Field Color, Pink.

This color remap property is indended for use in changing the foreground and backgroud color for the pink field when the 5250 session is in field-mode.

5250 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

FIELD_BLUE

public static final java.lang.String FIELD_BLUE
Field Color, Blue.

This color remap property is indended for use in changing the foreground and backgroud color for the blue field when the 5250 session is in field-mode.

5250 Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

BASE_NORMAL

public static final java.lang.String BASE_NORMAL
Base Color, Normal.

This color remap property is indended for use in changing the base foreground and background color of the of the VT display.

VT Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

BASE_BOLD

public static final java.lang.String BASE_BOLD
Base Color, Bold.

This color remap property is indended for use in changing the base, bold foreground and background color of the VT display.

VT Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

BASE_HISTORY_NORMAL

public static final java.lang.String BASE_HISTORY_NORMAL
Base Color, History, Normal.

This color remap property is indended for use in changing the base foreground and background color of the of the VT History window.

VT Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

BASE_HISTORY_BOLD

public static final java.lang.String BASE_HISTORY_BOLD
Base Color, History, Bold.

This color remap property is indended for use in changing the base, bold foreground and background color of the VT History window.

VT Display sessions only.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

ANSI_BLUE

public static final java.lang.String ANSI_BLUE
ANSI Attribute, Blue.  Not implemented at this time.

VT Display sessions only.


ANSI_GREEN

public static final java.lang.String ANSI_GREEN
ANSI Attribute, Green.  Not implemented at this time.

VT Display sessions only.


ANSI_PINK

public static final java.lang.String ANSI_PINK
ANSI Attribute, Pink.  Not implemented at this time.

VT Display sessions only.


ANSI_RED

public static final java.lang.String ANSI_RED
ANSI Attribute, Red.  Not implemented at this time.

VT Display sessions only.


ANSI_TURQUOISE

public static final java.lang.String ANSI_TURQUOISE
ANSI Attribute, Turquoise.  Not implemented at this time.

VT Display sessions only.


ANSI_WHITE

public static final java.lang.String ANSI_WHITE
ANSI Attribute, White.  Not implemented at this time.

VT Display sessions only.


ANSI_YELLOW

public static final java.lang.String ANSI_YELLOW
ANSI Attribute, Yellow.  Not implemented at this time.

VT Display sessions only.


OIA_STATUS

public static final java.lang.String OIA_STATUS
OIA Color, Status Indicator.

This color remap property is indended for use in changing the foreground and background color of the Operator Information Area (OIA) Status area.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

OIA_INFORMATION

public static final java.lang.String OIA_INFORMATION
OIA Color, Information Indicator.

This color remap property is indended for use in changing the foreground and background color of the Operator Information Area (OIA) Information area.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

OIA_ATTENTION

public static final java.lang.String OIA_ATTENTION
OIA Color, Attention Indicator.

This color remap property is indended for use in changing the foreground and background color of the Operator Information Area (OIA) Attention area.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

OIA_ERROR

public static final java.lang.String OIA_ERROR
OIA Color, Error Indicator.

This color remap property is indended for use in changing the foreground and background color of the Operator Information Area (OIA) Error Indicator area.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)

OIA_BACKGROUND

public static final java.lang.String OIA_BACKGROUND
OIA Color, OIA Background.

This color remap property is indended for use in changing the foreground and background color of the Operator Information Area (OIA) background.

See Also:
setRemapColor(java.lang.String, java.awt.Color, java.awt.Color)
Constructor Detail

ColorRemap

public ColorRemap()
Constructor that uses the default values for all properties.

ColorRemap

public ColorRemap(java.util.Properties p)
           throws java.beans.PropertyVetoException
Constructor that takes a Properties object containing the initial property settings. Any properties that are not specified in the Properties object are defaulted.
Parameters:
p - Properties for the Bean.
Throws:
java.beans.PropertyVetoException - Thrown if an invalid property value is given.
Method Detail

addColorRemapListener

public void addColorRemapListener(ColorRemapListener l)
add color remap listeners for receiving ColorRemapEvent notifications
Specified by:
addColorRemapListener in interface com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf

removeColorRemapListener

public void removeColorRemapListener(ColorRemapListener l)
remove color remap listeners
Specified by:
removeColorRemapListener in interface com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf

mouseEvent

public void mouseEvent(ScreenMouseEvent evt)
ScreenMouseListener interface method.
Specified by:
mouseEvent in interface ScreenMouseListener

accept

public void accept()
Accepts the current color map. This commits any pending changes made to the color map. A subsequent cancel() will not cancel these changes.
Specified by:
accept in interface com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf

cancel

public void cancel()
Cancels any changes that have been made to the color map since the last time the accept() method was invoked.
Specified by:
cancel in interface com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf

undo

public void undo()
Undoes any changes that have been made to the color map since the last time the accept() method was invoked.
Specified by:
undo in interface com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf

reset

public void reset()
Resets the color map to the default colors.
Specified by:
reset in interface com.ibm.eNetwork.beans.HOD.intf.ColorRemapIntf

getTraceName

public java.lang.String getTraceName()
Returns a trace identifier for this bean
Overrides:
getTraceName in class HODPanelBean

getColorString

public static java.lang.String getColorString(java.awt.Color fgColor,
                                              java.awt.Color bgColor)
Returns the HOD foreground and background color string
Parameters:
fgColor - the foreground color
bgColor - the background color

setRemapColor

public void setRemapColor(java.lang.String property,
                          java.awt.Color fgColor,
                          java.awt.Color bgColor)
                   throws java.beans.PropertyVetoException
Set the foreground and background color for the specified color remap property
Parameters:
property - the property string name
fgColor - the foreground Color object
bgColor - the background Color object