|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.ScaleLabels
public class ScaleLabels
Provides support for labeling the scale of an axis.
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.LineDrawing |
|---|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
MANIPULABLE, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
protected |
ScaleLabels(ScaleLabels that)
Constructs from another instance. |
|
ScaleLabels(String name,
RealType realType)
Constructs from a name and a axis RealType. |
| Method Summary | |
|---|---|
void |
addScalarMaps(LocalDisplay display)
Adds the non-spatial ScalarMap-s of this instance to a VisAD display. |
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
void |
set(Gridded1DSet set)
Sets the labels from a set of values. |
protected void |
setAlignment(TextControl control)
Sets the alignment of text in a TextControl according to the alignment property. |
void |
setFormat(NumberFormat format)
Sets the format of the labels. |
protected void |
setLabels()
Sets the labels from internal information. |
void |
setLabelValues(float[] values)
Sets the labels from an array of values. |
void |
setPositionValues(float[] positionValues)
Sets the position of the labels from an array of positions. |
void |
setSize(double size)
Sets the size of the labels. |
protected void |
setSize(TextControl control)
Sets the size of text in a TextControl according to the size property. |
void |
setXAlignment(float alignment)
Sets the X-alignment of the labels. |
| Methods inherited from class ucar.visad.display.LineDrawing |
|---|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScaleLabels(String name,
RealType realType)
throws RemoteException,
VisADException
name - The name for this instance.realType - The type of the axis.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected ScaleLabels(ScaleLabels that)
throws RemoteException,
VisADException
that - The other instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public void setSize(double size)
throws VisADException,
RemoteException
size - The size of the labels (1 = normal).
VisADException - VisAD failure.
RemoteException - Java RMI failure.setSize(TextControl)
protected void setSize(TextControl control)
throws VisADException,
RemoteException
control - The TextControl.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setXAlignment(float alignment)
throws VisADException,
RemoteException
alignment - The X-alignment of the labels. One of
Component.CENTER_ALIGNMENT,
Component.RIGHT_ALIGNMENT, or
Component.LEFT_ALIGNMENT.
VisADException - VisAD failure.
RemoteException - Java RMI failure.setAlignment(TextControl)
protected void setAlignment(TextControl control)
throws VisADException,
RemoteException
control - The TextControl.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setFormat(NumberFormat format)
throws RemoteException,
VisADException
format - The format of the labels.
VisADException - VisAD failure.
RemoteException - Java RMI failure.NumberFormat
public void set(Gridded1DSet set)
throws RemoteException,
VisADException
set - The set of values.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setLabelValues(float[] values)
throws VisADException,
RemoteException
values - The array of values.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setLabels()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setPositionValues(float[] positionValues)
throws VisADException,
RemoteException
positionValues - The position for the labels along the axis.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void addScalarMaps(LocalDisplay display)
throws VisADException,
RemoteException
display - The VisAD display.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableDataVisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||