|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
visad.util.ColorPreview
A small preview bar generated for a color widget
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| 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 | |
(package private) |
ColorPreview(ColorMap map)
Constructs a ColorPreview that Listens to the specified ColorMap and has the default height |
|
ColorPreview(ColorMap map,
int height)
Constructs a ColorPreview that listens to the specified ColorMap and has the specified height |
(package private) |
ColorPreview(ColorWidget widget)
Deprecated. Specify the ColorMap instead. |
|
ColorPreview(ColorWidget widget,
int height)
Deprecated. Specify the ColorMap instead. |
| Method Summary | |
void |
colorChanged(ColorChangeEvent e)
Implementation of the ColorChangeListener interface |
Dimension |
getMaximumSize()
Overridden to maintain the preview at the specified height |
Dimension |
getPreferredSize()
Finds the preferred width of the ColorMap, and returns it with the specified height |
void |
paint(Graphics g)
Redraw the entire panel |
void |
setMap(ColorMap newMap)
|
void |
update(Graphics g)
Updates the nessecary areas of the panel after ColorChangeEvents and paint() |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
ColorPreview(ColorWidget widget)
public ColorPreview(ColorWidget widget,
int height)
ColorPreview(ColorMap map)
public ColorPreview(ColorMap map,
int height)
| Method Detail |
public Dimension getMaximumSize()
public void paint(Graphics g)
public void update(Graphics g)
ColorChangeEventpublic void colorChanged(ColorChangeEvent e)
colorChanged in interface ColorChangeListenerColorChangeListenerpublic Dimension getPreferredSize()
public void setMap(ColorMap newMap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||