|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.chart.DataChoiceWrapper
public class DataChoiceWrapper
Wraps a data choice. Holds extra chart state.
| Field Summary | |
|---|---|
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 |
| Constructor Summary | |
|---|---|
DataChoiceWrapper()
ctor |
|
DataChoiceWrapper(DataChoice dataChoice)
ctor |
|
| Method Summary | |
|---|---|
Color |
getColor()
Get the color from the line state |
Color |
getColor(int index)
Either get the color defined for this wrapper or, if null, return the index'ed color |
DataChoice |
getDataChoice()
Get the DataChoice property. |
String |
getDescription()
Get the description either from me or from the data choice |
String |
getLabel(Unit unit)
A utility to format the description with the given unit. |
LineState |
getLineState()
Get the LineState property. |
String |
getMyDescription()
Get the MyDescription property. |
String |
getName()
Get the name from the data choice |
int |
getSide()
Get the Side property. |
void |
setDataChoice(DataChoice value)
Set the DataChoice property. |
void |
setLineState(LineState value)
Set the LineState property. |
void |
setMyDescription(String value)
Set the MyDescription property. |
void |
setSide(int value)
Set the Side property. |
String |
toString()
to string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public DataChoiceWrapper()
public DataChoiceWrapper(DataChoice dataChoice)
dataChoice - The data choice to wrap| Method Detail |
|---|
public void setDataChoice(DataChoice value)
value - The new value for DataChoicepublic DataChoice getDataChoice()
public Color getColor(int index)
index - color index
public Color getColor()
public String getName()
public String getDescription()
public String getLabel(Unit unit)
unit - The unit. May be null.
public String toString()
toString in class Objectpublic void setSide(int value)
value - The new value for Sidepublic int getSide()
public void setMyDescription(String value)
value - The new value for MyDescriptionpublic String getMyDescription()
public void setLineState(LineState value)
value - The new value for LineStatepublic LineState getLineState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||