All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eNetwork.beans.HOD.ColorRemap

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.eNetwork.beans.HOD.HODPanelBean
                                   |
                                   +----com.ibm.eNetwork.beans.HOD.ColorRemap

public class ColorRemap
extends HODPanelBean
implements 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)


Constructor Index

 o ColorRemap()
Constructor that uses the default values for all properties.
 o ColorRemap(Properties)
Constructor that takes a Properties object containing the initial property settings.

Method Index

 o accept()
Accepts the current color map.
 o addColorRemapListener(ColorRemapListener)
add color remap listeners for receiving ColorRemapEvent notifications
 o cancel()
Cancels any changes that have been made to the color map since the last time the accept() method was invoked.
 o getTraceName()
Returns a trace identifier for this bean
 o mouseEvent(ScreenMouseEvent)
ScreenMouseListener interface method.
 o removeColorRemapListener(ColorRemapListener)
remove color remap listeners
 o reset()
Resets the color map to the default colors.
 o undo()
Undoes any changes that have been made to the color map since the last time the accept() method was invoked.

Constructors

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

 o ColorRemap
 public ColorRemap(Properties p) throws 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: PropertyVetoException
Thrown if an invalid property value is given.

Methods

 o addColorRemapListener
 public void addColorRemapListener(ColorRemapListener l)
add color remap listeners for receiving ColorRemapEvent notifications

 o removeColorRemapListener
 public void removeColorRemapListener(ColorRemapListener l)
remove color remap listeners

 o mouseEvent
 public void mouseEvent(ScreenMouseEvent evt)
ScreenMouseListener interface method.

 o 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.

 o cancel
 public void cancel()
Cancels any changes that have been made to the color map since the last time the accept() method was invoked.

 o undo
 public void undo()
Undoes any changes that have been made to the color map since the last time the accept() method was invoked.

 o reset
 public void reset()
Resets the color map to the default colors.

 o getTraceName
 public String getTraceName()
Returns a trace identifier for this bean

Overrides:
getTraceName in class HODPanelBean

All Packages  Class Hierarchy  This Package  Previous  Next  Index