|
||||||||||
| 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
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.BaselineResizeBehavior, 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(List<Color> colors,
DisplayConventions dc)
Create a new color table preview |
|
RangeColorPreview(List<Color> colors,
DisplayConventions dc,
boolean isTime)
Create a new color table preview |
|
RangeColorPreview(List<Color> colors,
DisplayConventions dc,
int legendType,
boolean forMain)
Create a new color table preview |
|
RangeColorPreview(List<Color> colors,
DisplayConventions dc,
int legendType,
boolean forMain,
boolean isTime)
Create a new color table preview |
|
| Method Summary | |
|---|---|
JPanel |
doMakeContents()
Make the contents |
protected boolean |
forSideLegend()
Is this for the side legend |
boolean |
getIsTime()
Is this a time preview? |
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 |
paint(Graphics g)
Update the graphics |
void |
setColors(List<Color> colors)
Set the colors |
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 |
Dimension |
xxxgetMaximumSize()
Get the maximum size |
| 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(List<Color> colors,
DisplayConventions dc)
colors - the colorsdc - For formatting
public RangeColorPreview(List<Color> colors,
DisplayConventions dc,
boolean isTime)
colors - the colorsdc - For formattingisTime - is this a time range
public RangeColorPreview(List<Color> colors,
DisplayConventions dc,
int legendType,
boolean forMain)
colors - the colorsdc - For formattinglegendType - What legendforMain - Or in main window
public RangeColorPreview(List<Color> colors,
DisplayConventions dc,
int legendType,
boolean forMain,
boolean isTime)
colors - the colorsdc - For formattinglegendType - What legendforMain - Or in main windowisTime - is this a time range| Method Detail |
|---|
public Dimension xxxgetMaximumSize()
public void setMyPreferredSize(Dimension size)
size - new sizepublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic 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 paint(Graphics g)
paint in class JComponentg - graphics to updatepublic void setColors(List<Color> colors)
colors - the colorspublic 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 MouseEventpublic boolean getIsTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||