Package ucar.visad.display
Class LatLonLines
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.LatLonLines
Displayable to support Latitude and Longitude lines.
- Version:
- $Revision: 1.9 $
- Author:
- Don Murray, Unidata
-
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
LatLonLines
(LatLonLines that) Constructs from another instance.LatLonLines
(RealType type) Construct a LatLonLine object with default min, max and spacing values.LatLonLines
(RealType type, float minValue, float maxValue, float spacing) Construct a LatLonLine object of the given type.LatLonLines
(RealType type, float minValue, float maxValue, float spacing, boolean setData) Construct a LatLonLine object of the given type.LatLonLines
(RealType type, float minValue, float maxValue, float spacing, float base, boolean setData) Construct a LatLonLine object of the given type. -
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of this instance suitable for another VisAD display.float
getBase()
Get the current line base.float
Get the current line spacing.void
setBase
(float base) Change the line basevoid
setLimits
(float minValue, float maxValue, float spacing) Set the limits and spacing of the lines.void
setLimits
(float minValue, float maxValue, float spacing, float base) Set the limits and spacing of the lines.void
setMaxMin
(float minValue, float maxValue) Change the starting and ending linesvoid
setSpacing
(float spacing) Change the line spacingvoid
setVisible
(boolean visible) Sets the "visible" property.toString()
Provide a readable description of this LatLonLinesMethods 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, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, showme
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
-
LatLonLines
Construct a LatLonLine object with default min, max and spacing values.- Parameters:
type
- lat lines when type = RealType.Latitude, lon lines when type = RealType.Longitude- Throws:
VisADException
- invalid type or can't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
LatLonLines
public LatLonLines(RealType type, float minValue, float maxValue, float spacing) throws VisADException, RemoteException Construct a LatLonLine object of the given type.- Parameters:
type
- lat lines when type = RealType.Latitude, lon lines when type = RealType.LongitudeminValue
- starting line (degrees)maxValue
- ending line (degrees)spacing
- spacing between lines (degrees)- Throws:
VisADException
- invalid type or can't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
LatLonLines
public LatLonLines(RealType type, float minValue, float maxValue, float spacing, boolean setData) throws VisADException, RemoteException Construct a LatLonLine object of the given type.- Parameters:
type
- lat lines when type = RealType.Latitude, lon lines when type = RealType.LongitudeminValue
- starting line (degrees)maxValue
- ending line (degrees)spacing
- spacing between lines (degrees)setData
- if true, the data will be set on construction- Throws:
VisADException
- invalid type or can't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
LatLonLines
public LatLonLines(RealType type, float minValue, float maxValue, float spacing, float base, boolean setData) throws VisADException, RemoteException Construct a LatLonLine object of the given type.- Parameters:
type
- lat lines when type = RealType.Latitude, lon lines when type = RealType.LongitudeminValue
- starting line (degrees)maxValue
- ending line (degrees)spacing
- spacing between lines (degrees)base
- base for lines spacingsetData
- if true, the data will be set on construction- Throws:
VisADException
- invalid type or can't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
LatLonLines
Constructs from another instance.- Parameters:
that
- The other instance.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
setSpacing
Change the line spacing- Parameters:
spacing
- spacing between lines (degrees)- Throws:
VisADException
- couldn't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
getSpacing
public float getSpacing()Get the current line spacing.- Returns:
- spacing in degrees
-
setBase
Change the line base- Parameters:
base
- base for lines (degrees)- Throws:
VisADException
- couldn't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
getBase
public float getBase()Get the current line base.- Returns:
- base in degrees
-
setMaxMin
Change the starting and ending lines- Parameters:
minValue
- starting line (degrees)maxValue
- ending line (degrees)- Throws:
VisADException
- couldn't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
setLimits
public void setLimits(float minValue, float maxValue, float spacing) throws VisADException, RemoteException Set the limits and spacing of the lines.- Parameters:
minValue
- starting line (degrees)maxValue
- ending line (degrees)spacing
- spacing between lines (degrees)- Throws:
VisADException
- couldn't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
setLimits
public void setLimits(float minValue, float maxValue, float spacing, float base) throws VisADException, RemoteException Set the limits and spacing of the lines.- Parameters:
minValue
- starting line (degrees)maxValue
- ending line (degrees)spacing
- spacing between lines (degrees)base
- base for lines (degrees)- Throws:
VisADException
- couldn't create local VisAD objectRemoteException
- couldn't create remote VisAD object
-
cloneForDisplay
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.- Overrides:
cloneForDisplay
in classDisplayableData
- Returns:
- A semi-deep clone of this instance.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setVisible
Sets the "visible" property. This method fires a PropertyChangeEvent for VISIBLE.- Overrides:
setVisible
in classDisplayableData
- Parameters:
visible
- Whether or not this instance should be visible.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
toString
Provide a readable description of this LatLonLines- Overrides:
toString
in classDisplayableData
- Returns:
- readable description
-