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
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
-
ColorRemap()
- Constructor that uses the default values for all properties.
-
ColorRemap(Properties)
- Constructor that takes a Properties object containing the initial
property settings.
-
accept()
- Accepts the current color map.
-
addColorRemapListener(ColorRemapListener)
- add color remap listeners for receiving ColorRemapEvent notifications
-
cancel()
- Cancels any changes that have been made to the color map since the
last time the accept() method was invoked.
-
getTraceName()
- Returns a trace identifier for this bean
-
mouseEvent(ScreenMouseEvent)
- ScreenMouseListener interface method.
-
removeColorRemapListener(ColorRemapListener)
- remove color remap listeners
-
reset()
- Resets the color map to the default colors.
-
undo()
- Undoes any changes that have been made to the color map since the
last time the accept() method was invoked.
ColorRemap
public ColorRemap()
- Constructor that uses the default values for all properties.
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.
addColorRemapListener
public void addColorRemapListener(ColorRemapListener l)
- add color remap listeners for receiving ColorRemapEvent notifications
removeColorRemapListener
public void removeColorRemapListener(ColorRemapListener l)
- remove color remap listeners
mouseEvent
public void mouseEvent(ScreenMouseEvent evt)
- ScreenMouseListener interface method.
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.
cancel
public void cancel()
- Cancels any changes that have been made to the color map since the
last time the accept() method was invoked.
undo
public void undo()
- Undoes any changes that have been made to the color map since the
last time the accept() method was invoked.
reset
public void reset()
- Resets the color map to the default colors.
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