|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.chart.LineState
public class LineState
Holds graphics state
| Field Summary | |
|---|---|
static Color[] |
COLORS
The array of colors we cycle through |
protected int |
index
index |
static int |
LINETYPE_AREA
Useful constant for specifying the type of rendering (area only). |
static int |
LINETYPE_AREA_AND_SHAPES
Useful constant for specifying the type of rendering (area and shapes). |
static int |
LINETYPE_BAR
line type |
static int[] |
LINETYPE_IDS
line types |
static String[] |
LINETYPE_LABELS
line type labels |
static int |
LINETYPE_LINES
Useful constant for specifying the type of rendering (lines only). |
static int |
LINETYPE_SHAPES
line type |
static int |
LINETYPE_SHAPES_AND_LINES
Useful constant for specifying the type of rendering (shapes and lines). |
static int |
SHAPE_HLINE
shape type |
static int |
SHAPE_LARGEPOINT
shape type |
static String[] |
SHAPE_NAMES
shape names |
static int |
SHAPE_PLUS
shape type |
static int |
SHAPE_POINT
shape type |
static int |
SHAPE_RECTANGLE
shape type |
static int |
SHAPE_VLINE
shape type |
static int |
SHAPE_X
shape type |
static int[] |
SHAPES
shape types |
static int |
SIDE_LEFT
which side in legend |
static int |
SIDE_RIGHT
which side in legend |
static int |
SIDE_UNDEFINED
which side in legend |
static String[] |
SIDELABELS
which side in legend |
static int[] |
SIDES
which side in legend |
static int |
STROKE_DASH
Stroke type |
static int |
STROKE_DOT
Stroke type |
static int |
STROKE_DOTDASH
Stroke type |
static int[] |
STROKE_IDS
Stroke types |
static String[] |
STROKE_LABELS
Stroke type labels |
static int |
STROKE_SOLID
Stroke type |
protected Unit |
unit
display unit |
static int |
VPOS_BOTTOM
vertical position value |
static String[] |
VPOS_LABELS
vertical position labels |
static int |
VPOS_MIDDLE
vertical position value |
static int |
VPOS_NONE
vertical position value |
static int |
VPOS_TOP
vertical position value |
static int[] |
VPOS_VALUES
vertical positions |
| Constructor Summary | |
|---|---|
LineState()
Default ctor |
|
LineState(Color color,
float width,
int strokeType)
Constructor |
|
LineState(Color color,
float width,
int strokeType,
int lineType,
int shapeType)
Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
applyProperties()
Apply properties |
boolean |
getAxisVisible()
Get the AxisVisible property. |
String |
getChartName()
Get the ChartName property. |
Color |
getColor()
Get the Color property. |
Color |
getColor(int index)
if we have a color then return it. |
static Color |
getFixedColor(int index)
Utility to get a color in the static list of colors |
int |
getLineType()
Get the LineType property. |
String |
getName()
Get the Name property. |
Shape |
getPaintShape()
get the shape we use to paint |
protected JComponent |
getPropertyContents()
Create the properties contents |
protected JComponent |
getPropertyContents(boolean full,
List chartNames,
List sampleRanges)
Create the properties contents |
Range |
getRange()
Get the Range property. |
boolean |
getRangeIncludesZero()
Get the RangeIncludesZero property. |
int |
getShape()
Get the Shape property. |
int |
getSide()
Get the Side property. |
BasicStroke |
getStroke()
Create a stroke |
int |
getStrokeType()
Get the StrokeType property. |
boolean |
getUseLogarithmicRange()
Get the UseLogarithmicRange property. |
boolean |
getValid()
Get the Valid property. |
int |
getVerticalPosition()
Get the VerticalPosition property. |
boolean |
getVisible()
Get the Visible property. |
float |
getWidth()
Get the Width property. |
static BasicStroke |
makeStroke(float width,
int type)
create a stroke |
void |
setAxisVisible(boolean value)
Set the AxisVisible property. |
void |
setChartName(String value)
Set the chart name property. |
void |
setColor(Color value)
Set the Color property. |
void |
setLineType(int value)
Set the LineType property. |
void |
setName(String value)
Set the Name property. |
void |
setRange(Range value)
Set the Range property. |
void |
setRangeIncludesZero(boolean value)
Set the RangeIncludesZero property. |
void |
setRangeInProperties(Range r)
apply range to gui |
void |
setShape(int value)
Set the Shape property. |
void |
setSide(int value)
Set the Side property. |
void |
setStrokeType(int value)
Set the StrokeType property. |
void |
setStrokeType(Integer value)
set stroke |
void |
setUseLogarithmicRange(boolean value)
Set the UseLogarithmicRange property. |
void |
setValid(boolean value)
Set the Valid property. |
void |
setVerticalPosition(int value)
Set the VerticalPosition property. |
void |
setVisible(boolean value)
Set the Visible property. |
void |
setWidth(float value)
Set the Width property. |
boolean |
showPropertiesDialog(PropertyChangeListener propListener,
boolean doVisible,
boolean doRange,
List chartNames,
List sampleRanges)
show dialog |
boolean |
showPropertiesDialog(PropertyChangeListener listener,
List chartNames,
List ranges)
show dialog |
void |
showRangePopup(List ranges)
popup range menu |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VPOS_TOP
public static final int VPOS_MIDDLE
public static final int VPOS_BOTTOM
public static final int VPOS_NONE
public static int[] VPOS_VALUES
public static String[] VPOS_LABELS
public static final int LINETYPE_SHAPES
public static final int LINETYPE_LINES
public static final int LINETYPE_SHAPES_AND_LINES
public static final int LINETYPE_AREA
public static final int LINETYPE_AREA_AND_SHAPES
public static final int LINETYPE_BAR
public static final int[] LINETYPE_IDS
public static final String[] LINETYPE_LABELS
public static final int SIDE_UNDEFINED
public static final int SIDE_LEFT
public static final int SIDE_RIGHT
public static final int[] SIDES
public static final String[] SIDELABELS
public static final int STROKE_SOLID
public static final int STROKE_DOT
public static final int STROKE_DASH
public static final int STROKE_DOTDASH
public static final int[] STROKE_IDS
public static final String[] STROKE_LABELS
public static final int SHAPE_PLUS
public static final int SHAPE_X
public static final int SHAPE_RECTANGLE
public static final int SHAPE_POINT
public static final int SHAPE_LARGEPOINT
public static final int SHAPE_VLINE
public static final int SHAPE_HLINE
public static int[] SHAPES
public static String[] SHAPE_NAMES
public static Color[] COLORS
protected int index
protected Unit unit
| Constructor Detail |
|---|
public LineState()
public LineState(Color color,
float width,
int strokeType)
color - colorwidth - line widthstrokeType - stroke
public LineState(Color color,
float width,
int strokeType,
int lineType,
int shapeType)
color - colorwidth - line widthstrokeType - strokelineType - line typeshapeType - shape type| Method Detail |
|---|
protected JComponent getPropertyContents()
public boolean showPropertiesDialog(PropertyChangeListener listener,
List chartNames,
List ranges)
listener - listens for changeschartNames - all chart names. We use this to show a combo box of chartsranges - All ranges. Some candy for the user so they can set the range values to use on multiple line states
public boolean showPropertiesDialog(PropertyChangeListener propListener,
boolean doVisible,
boolean doRange,
List chartNames,
List sampleRanges)
propListener - listens for changesdoVisible - show visible cbxdoRange - show rangeschartNames - all chart names. We use this to show a combo box of chartssampleRanges - All ranges. Some candy for the user so they can set the range values to use on multiple line states
protected JComponent getPropertyContents(boolean full,
List chartNames,
List sampleRanges)
full - show fill dialogchartNames - chart namessampleRanges - ranges
public void showRangePopup(List ranges)
ranges - rangespublic void setRangeInProperties(Range r)
r - rangeprotected boolean applyProperties()
public static Color getFixedColor(int index)
index - which color
public BasicStroke getStroke()
public static BasicStroke makeStroke(float width,
int type)
width - line widthtype - stroke type
public Shape getPaintShape()
public void setVisible(boolean value)
value - The new value for Visiblepublic boolean getVisible()
public void setColor(Color value)
value - The new value for Colorpublic Color getColor()
public Color getColor(int index)
index - index
public void setWidth(float value)
value - The new value for Widthpublic float getWidth()
public void setStrokeType(Integer value)
value - valuepublic void setStrokeType(int value)
value - The new value for StrokeTypepublic int getStrokeType()
public void setShape(int value)
value - The new value for Shapepublic int getShape()
public void setRangeIncludesZero(boolean value)
value - The new value for RangeIncludesZeropublic boolean getRangeIncludesZero()
public void setRange(Range value)
value - The new value for Rangepublic Range getRange()
public void setUseLogarithmicRange(boolean value)
value - The new value for UseLogarithmicRangepublic boolean getUseLogarithmicRange()
public void setLineType(int value)
value - The new value for LineTypepublic int getLineType()
public void setChartName(String value)
value - The new value for chart namepublic String getChartName()
public void setName(String value)
value - The new value for Namepublic String getName()
public void setVerticalPosition(int value)
value - The new value for VerticalPositionpublic int getVerticalPosition()
public void setSide(int value)
value - The new value for Sidepublic int getSide()
public void setAxisVisible(boolean value)
value - The new value for AxisVisiblepublic boolean getAxisVisible()
public void setValid(boolean value)
value - The new value for Validpublic boolean getValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||