|
||||||||||
| 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
ucar.unidata.idv.control.RangeColorPreview
public class RangeColorPreview
Provides label and mouse over display for color tables
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces 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.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 | |
|---|---|
RangeColorPreview(BaseRGBMap map,
DisplayConventions dc)
Create a new color table preview |
|
RangeColorPreview(BaseRGBMap map,
DisplayConventions dc,
int legendType,
boolean forMain)
Create a new color table preview |
|
| Method Summary | |
|---|---|
JPanel |
doMakeContents()
Make the contents |
protected boolean |
forSideLegend()
Is this for the side legend |
Dimension |
getPreferredSize()
Get the preferred size |
Range |
getRange()
get the range |
void |
mouseClicked(MouseEvent event)
Mouse clicked event handler |
void |
mouseDragged(MouseEvent e)
Mouse dragged event handler |
void |
mouseEntered(MouseEvent event)
Mouse entered event handler |
void |
mouseExited(MouseEvent event)
Mouse exited event handler |
void |
mouseMoved(MouseEvent e)
Mouse moved event handler |
void |
mousePressed(MouseEvent event)
Mouse pressed event handler |
void |
mouseReleased(MouseEvent e)
Mouse released event handler |
void |
setMyPreferredSize(Dimension size)
Local implementation of preferred size setting |
void |
setRange(Range range)
Set the range for the component |
void |
setRange(Range range,
Unit unit)
Set the range for the component |
void |
update(Graphics g)
Update the graphics |
| Methods inherited from class visad.util.ColorPreview |
|---|
colorChanged, getMaximumSize, paint, setMap |
| 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 |
|---|
public RangeColorPreview(BaseRGBMap map,
DisplayConventions dc)
map - The mapdc - For formatting
public RangeColorPreview(BaseRGBMap map,
DisplayConventions dc,
int legendType,
boolean forMain)
map - The mapdc - For formattinglegendType - What legendforMain - Or in main window| Method Detail |
|---|
public void setMyPreferredSize(Dimension size)
size - new sizepublic Dimension getPreferredSize()
getPreferredSize in class ColorPreviewpublic JPanel doMakeContents()
public Range getRange()
protected boolean forSideLegend()
public void setRange(Range range)
range - new range
public void setRange(Range range,
Unit unit)
range - new rangeunit - The unitpublic void update(Graphics g)
update in class ColorPreviewg - graphics to updatepublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - the MouseEventpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - the MouseEventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - the MouseEventpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenerevent - the MouseEventpublic void mouseEntered(MouseEvent event)
mouseEntered in interface MouseListenerevent - the MouseEventpublic void mouseExited(MouseEvent event)
mouseExited in interface MouseListenerevent - the MouseEventpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerevent - the MouseEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||