public abstract class ScaleLabels extends LineDrawing
DisplayableData.DragAdapterCOLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZEMANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Modifier | Constructor and Description |
|---|---|
protected |
ScaleLabels(ScaleLabels that)
Constructs from another instance.
|
protected |
ScaleLabels(java.lang.String name,
visad.RealType axisType)
Constructs from a name for the displayable and the type of the axis.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFormat(java.text.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(visad.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.
|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBAaddAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toStringaddConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFrontprotected ScaleLabels(java.lang.String name,
visad.RealType axisType)
throws java.rmi.RemoteException,
visad.VisADException
name - The name for the displayable.axisType - The type of the axis. May be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected ScaleLabels(ScaleLabels that) throws java.rmi.RemoteException, visad.VisADException
that - The other instance.visad.VisADException - if a core VisAD failure occurs.java.rmi.RemoteException - if a Java RMI failure occurs.public void setSize(double size)
throws visad.VisADException,
java.rmi.RemoteException
size - The size of the labels (1 is normal).visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setXAlignment(float alignment)
throws visad.VisADException,
java.rmi.RemoteException
alignment - The X-alignment of the labels. One of
Component.LEFT_ALIGNMENT,
Component.RIGHT_ALIGNMENT.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setRealType(visad.RealType realType)
throws visad.VisADException,
java.rmi.RemoteException
realType - The type of the axis.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setFormat(java.text.NumberFormat format)
throws java.rmi.RemoteException,
visad.VisADException
format - The format for the labels.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setLabelValues(float[] values)
throws visad.VisADException,
java.rmi.RemoteException
values - The values for the labels.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void setLabels()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setPositionValues(float[] values)
throws visad.VisADException,
java.rmi.RemoteException
values - The position of the labels.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.