Package ucar.visad.display
Class RingSet
Provides support for a set of evenly-spaced, concentric rings (ie: a
"bullseye").
- Version:
- $Revision: 1.13 $
- 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
ConstructorsModifierConstructorDescriptionRingSet
(String name, RealTupleType polarType) Constructs from a name and a vector space.RingSet
(String name, RealTupleType polarType, Color color) Constructs from a name and a vector space and Color.protected
Constructs from another instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addScalarMaps
(LocalDisplay display) Adds this instance'sScalarMap
s to a givenLocalDisplay
.Returns a clone of this instance suitable for another VisAD display.static SampledSet
newUnionSet
(RealTupleType polarType, Gridded1DSet values) Creates a set of rings from a vector space and a set of distances.void
setRingValues
(RingSet that) Sets the ring distances of this instance from another instance.void
setRingValues
(Linear1DSet ringValues) Sets the distances of the rings from a set of evenly-spaced values.void
setRingValues
(Real rangeInc, Real rangeMax) Sets the distances of the rings from an interval and a maximum distance.Methods inherited from class ucar.visad.display.PolarLineDrawing
equals, getBearingIndex, getBearingIndex, getBearingType, getPolarType, getRangeIndex, getRangeType, hashCode
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, 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
-
RingSet
Constructs from a name and a vector space. Rings are white.- Parameters:
name
- The name for this instance.polarType
- The vector space for this instance.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
RingSet
public RingSet(String name, RealTupleType polarType, Color color) throws RemoteException, VisADException Constructs from a name and a vector space and Color.- Parameters:
name
- The name for this instance.polarType
- The vector space for this instance.color
- ring color- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
RingSet
Constructs from another instance.- Parameters:
that
- The other instance.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
setRingValues
Sets the distances of the rings from a set of evenly-spaced values.- Parameters:
ringValues
- The distances for the rings.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setRingValues
Sets the distances of the rings from an interval and a maximum distance.- Parameters:
rangeInc
- The ring interval.rangeMax
- The maximum distance to be displayed.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
newUnionSet
public static SampledSet newUnionSet(RealTupleType polarType, Gridded1DSet values) throws VisADException, RemoteException Creates a set of rings from a vector space and a set of distances.- Parameters:
polarType
- The polar vector-space.values
- The set of distances.- Returns:
- The set of rings.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setRingValues
Sets the ring distances of this instance from another instance.- Parameters:
that
- The other instance.- Throws:
TypeException
- if a necessary VisADRealType
couldn't be created.VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
addScalarMaps
Adds this instance'sScalarMap
s to a givenLocalDisplay
. This implementation does nothing.- Parameters:
display
- TheLocalDisplay
to which to add this instance'sScalarMap
s.
-
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.
-