Package ucar.unidata.view.sounding
Class ScaleLabels
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.unidata.view.sounding.ScaleLabels
- Direct Known Subclasses:
AerologicalDisplay.PressureAxisLabels
,AerologicalDisplay.TemperatureAxisLabels
Provides support for displaying scale-labels along an axis.
- Version:
- $Id: ScaleLabels.java,v 1.22 2005/05/13 18:33:37 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
-
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, renderer, VISIBLE
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ScaleLabels
(String name, RealType axisType) Constructs from a name for the displayable and the type of the axis.protected
ScaleLabels
(ScaleLabels that) Constructs from another instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setFormat
(NumberFormat format) Sets the format for the labels.protected void
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, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, 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, toFront
-
Constructor Details
-
ScaleLabels
Constructs from a name for the displayable and the type of the axis.- Parameters:
name
- The name for the displayable.axisType
- The type of the axis. May benull
.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
ScaleLabels
Constructs from another instance.- Parameters:
that
- The other instance.- Throws:
VisADException
- if a core VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
setSize
Sets the size of the labels.- Parameters:
size
- The size of the labels (1 is normal).- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setXAlignment
Sets the X-alignment of the labels.- Parameters:
alignment
- The X-alignment of the labels. One of Component.LEFT_ALIGNMENT, Component.RIGHT_ALIGNMENT.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setRealType
Sets the type of the axis.- Parameters:
realType
- The type of the axis.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setFormat
Sets the format for the labels.- Parameters:
format
- The format for the labels.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setLabelValues
Sets the values for the labels.- Parameters:
values
- The values for the labels.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setLabels
Sets the labels.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setPositionValues
Sets the position of the labels.- Parameters:
values
- The position of the labels.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-