public 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.
|
|
ScaleLabels(java.lang.String name,
visad.RealType realType)
Constructs from a name and a axis RealType.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addScalarMaps(visad.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(visad.Gridded1DSet set)
Sets the labels from a set of values.
|
protected void |
setAlignment(visad.TextControl control)
Sets the alignment of text in a TextControl according to the alignment
property.
|
void |
setFormat(java.text.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(visad.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.
|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBAaddAction, 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, toFrontpublic ScaleLabels(java.lang.String name,
visad.RealType realType)
throws java.rmi.RemoteException,
visad.VisADException
name - The name for this instance.realType - The type of the axis.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 - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setSize(double size)
throws visad.VisADException,
java.rmi.RemoteException
size - The size of the labels (1 = normal).visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.setSize(TextControl)protected void setSize(visad.TextControl control)
throws visad.VisADException,
java.rmi.RemoteException
control - The TextControl.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.CENTER_ALIGNMENT,
Component.RIGHT_ALIGNMENT, or
Component.LEFT_ALIGNMENT.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.setAlignment(TextControl)protected void setAlignment(visad.TextControl control)
throws visad.VisADException,
java.rmi.RemoteException
control - The TextControl.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 of the labels.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.NumberFormatpublic void set(visad.Gridded1DSet set)
throws java.rmi.RemoteException,
visad.VisADException
set - The set of values.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setLabelValues(float[] values)
throws visad.VisADException,
java.rmi.RemoteException
values - The array of values.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[] positionValues)
throws visad.VisADException,
java.rmi.RemoteException
positionValues - The position for the labels along the axis.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void addScalarMaps(visad.LocalDisplay display)
throws visad.VisADException,
java.rmi.RemoteException
display - The VisAD display.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay in class DisplayableDatavisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.