|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel java.applet.Applet visad.util.ColorWidget
public class ColorWidget
A color widget that allows users to interactively map numeric data to RGBA tuples based on the Vis5D color widget
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.applet.Applet |
---|
Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ColorWidget()
Construct a color widget with a ColorPreview and the default ColorMap |
|
ColorWidget(boolean preview)
Construct a color widget with the default ColorMap |
|
ColorWidget(ColorMap map)
Construct a color widget with a ColorPreview and the specified ColorMap |
|
ColorWidget(ColorMap map,
boolean preview)
Construct a color widget with the desired ColorMap and ColorPreview visibility |
Method Summary | |
---|---|
void |
addColorChangeListener(ColorChangeListener c)
Add a ColorChangeListener to the listeners list |
void |
colorChanged(ColorChangeEvent e)
Listen to the ColorMap and re-dispatch the ColorChangeEvents to the ColorChangeListeners listening to the widget |
ColorMap |
getColorMap()
Returns the ColorMap that the color wdget is curently pointing to |
Dimension |
getPreferredSize()
Analyses the visible components and determines the preferred size |
void |
hidePreview()
Hide the preview bar at the bottom of the widget |
static void |
main(String[] argv)
main method for standalone testing |
protected void |
notifyListeners(ColorChangeEvent e)
Notify the ColorChangeListerers that the color widget has changed |
void |
removeColorChangeListener(ColorChangeListener c)
Remove a ColorChangeListener from the listeners list |
void |
setColorMap(ColorMap map)
Set the ColorWidget to listen to a specific ColorMap |
void |
showPreview()
Make the preview bar at the bottom of the widget visible |
Methods inherited from class java.applet.Applet |
---|
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColorWidget() throws RemoteException, VisADException
RemoteException
VisADException
public ColorWidget(boolean preview) throws RemoteException, VisADException
preview
- indicates wether or not the preview bar at the
bottom of the widget should be present
RemoteException
VisADException
public ColorWidget(ColorMap map)
map
- the ColorMap for the widget to usepublic ColorWidget(ColorMap map, boolean preview)
map
- the ColorMap for the widget to usepreview
- indicates wether or not the preview bar at the
bottom of the widget should be presentMethod Detail |
---|
public static void main(String[] argv) throws RemoteException, VisADException
RemoteException
VisADException
public void addColorChangeListener(ColorChangeListener c)
public void removeColorChangeListener(ColorChangeListener c)
protected void notifyListeners(ColorChangeEvent e)
public void colorChanged(ColorChangeEvent e)
colorChanged
in interface ColorChangeListener
public void setColorMap(ColorMap map)
public void showPreview()
public void hidePreview()
public ColorMap getColorMap()
public Dimension getPreferredSize()
getPreferredSize
in class Container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |