|
||||||||||
| 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.unidata.view.sounding.ScaleLabels
public abstract class ScaleLabels
Provides support for displaying scale-labels along 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. |
protected |
ScaleLabels(String name,
RealType axisType)
Constructs from a name for the displayable and the type of the axis. |
| Method Summary | |
|---|---|
void |
setFormat(NumberFormat format)
Sets the format for the labels. |
protected void |
setLabels()
Sets the labels. |
void |
setLabelValues(float[] values)
Sets the values for the labels. |
void |
setPositionValues(float[] values)
Sets the position of the labels. |
void |
setRealType(RealType realType)
Sets the type of the axis. |
void |
setSize(double size)
Sets the size of the labels. |
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, cloneForDisplay, 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 |
|---|
protected ScaleLabels(String name,
RealType axisType)
throws RemoteException,
VisADException
name - The name for the displayable.axisType - The type of the axis. May be null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected ScaleLabels(ScaleLabels that)
throws RemoteException,
VisADException
that - The other instance.
VisADException - if a core VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.| Method Detail |
|---|
public void setSize(double size)
throws VisADException,
RemoteException
size - The size of the labels (1 is normal).
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.LEFT_ALIGNMENT,
Component.RIGHT_ALIGNMENT.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRealType(RealType realType)
throws VisADException,
RemoteException
realType - The type of the axis.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setFormat(NumberFormat format)
throws RemoteException,
VisADException
format - The format for the labels.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setLabelValues(float[] values)
throws VisADException,
RemoteException
values - The values for the labels.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setLabels()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setPositionValues(float[] values)
throws VisADException,
RemoteException
values - The position of the labels.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||