public class CrossSectionSelector extends SelectorDisplayable
| Modifier and Type | Field and Description |
|---|---|
static int |
POINT_END
end point id
|
static int |
POINT_MID
mid point id
|
static int |
POINT_START
start point id
|
static java.lang.String |
PROPERTY_ENDPOINT
position property
|
static java.lang.String |
PROPERTY_MIDPOINT
position property
|
static java.lang.String |
PROPERTY_STARTPOINT
position property
|
PROPERTY_POSITIONcnt, labelDISPLAY, parent, SCALAR_MAP_SET| Constructor and Description |
|---|
CrossSectionSelector()
Construct a CrossSectionSelector with default.
|
CrossSectionSelector(CrossSectionSelector that)
Construct a CrossSectionSelector from another instance
|
CrossSectionSelector(visad.RealTuple startPoint,
visad.RealTuple endPoint)
Construct a CrossSectionSelector along the points specified.
|
CrossSectionSelector(visad.RealTuple startPoint,
visad.RealTuple endPoint,
java.awt.Color color)
Construct a CrossSectionSelector along the points specified in the
Color specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEndPropertyChangeListener(java.beans.PropertyChangeListener action)
Adds a listener for data changes.
|
void |
addMidPropertyChangeListener(java.beans.PropertyChangeListener action)
Adds a listener for data changes.
|
void |
addStartPropertyChangeListener(java.beans.PropertyChangeListener action)
Adds a listener for data changes.
|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
void |
dontShowEndPoint()
Remove the end point
|
void |
dontShowMiddlePoint()
Remove the mid point
|
void |
dontShowStartPoint()
Remove the start point
|
visad.RealTuple |
getEndPoint()
Get the position of the ending point of the line.
|
SelectorPoint |
getEndSelectorPoint()
get the selector point
|
SelectorPoint |
getMiddleSelectorPoint()
get the selector point
|
visad.RealTuple |
getMidPoint()
Get the position of the middle point of the line.
|
visad.RealTuple[] |
getPosition()
Get the position of the ending point of the line.
|
visad.RealTuple |
getStartPoint()
Get the position of the starting point of the line
|
SelectorPoint |
getStartSelectorPoint()
get the selector point
|
protected void |
positionHasChanged()
Called when the position has changed
|
void |
removeEndPropertyChangeListener(java.beans.PropertyChangeListener action)
Removes a listener for data changes.
|
void |
removeMidPropertyChangeListener(java.beans.PropertyChangeListener action)
Removes a listener for data changes.
|
void |
removeStartPropertyChangeListener(java.beans.PropertyChangeListener action)
Removes a listener for data changes.
|
void |
setAutoSize(boolean yesorno)
Set whether the marker should automatically resize as the
display is zoomed.
|
void |
setColor(java.awt.Color newColor)
Set the color of the selector points.
|
void |
setConstantPosition(double value,
visad.DisplayRealType type)
Override base class method
|
void |
setEndPoint(visad.RealTuple point)
Set the position of the ending point of the line.
|
void |
setEndPointFixed(boolean value)
set whether the end point can be moved or not by user; true=yes
|
void |
setEndPointVisible(boolean value)
Set whether the end point is visible; true=yes
|
void |
setInterpolateLinePoints(boolean value)
SHould we interpolate the line points
|
void |
setMidPoint(visad.RealTuple point)
Set the position of the ending point of the line;
using current start and end points (ie "does nothing" -for persistence)
|
void |
setMidPointVisible(boolean value)
Set whether the mid point is visible; true=yes
|
void |
setPoint(int which,
visad.RealTuple point)
Set the position of one end point of the line.
|
void |
setPointSize(float size)
Set the size of the selector points.
|
void |
setPosition(visad.RealTuple[] position)
Set the position of the ending point of the line.
|
void |
setPosition(visad.RealTuple startPosition,
visad.RealTuple endPosition)
Set the position of the ending point of the line.
|
void |
setStartPoint(visad.RealTuple point)
Set the position of the starting point of the line.
|
void |
setStartPointFixed(boolean value)
set whether the start point can be moved or not by user; true=yes
|
void |
setStartPointVisible(boolean value)
Set whether the start point is visible; true=yes
|
void |
setStartPtFixed(boolean value)
Deprecated.
Should use setStartPointFixed
|
void |
setZValue(double zValue)
Set the location along the Z Axis that you want to have
the line and points displayed
|
addPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setOkToFireEventsaddConstantMap, addDisplayable, addListDataListener, clearDisplayables, debug, destroy, destroyAll, displayableCount, fireListDataContentsChanged, fireListDataIntervalAdded, fireListDataIntervalRemoved, getAnimationSet, getDisplayable, indexOf, iterator, lastDisplayable, myAddDataReferences, myRemoveDataReferences, removeDisplayable, removeDisplayable, removeListDataListener, setAdjustFlow, setColorPalette, setColorUnit, setDisplay, setDisplayable, setDisplayMaster, setDisplayUnit, setLineWidth, setManipulable, setPointMode, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, setVisible, setVisible, setVisible, toFront, toStringaddConstantMaps, addDataReferences, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getData, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, hasDataObject, isActive, isUnitCompatible, isVisible, logException, myAddConstantMaps, removeConstantMap, removeDataReferences, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setColorPalette, setContourInfo, setDisplayActive, setDisplayInactive, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRangepublic static final java.lang.String PROPERTY_STARTPOINT
public static final java.lang.String PROPERTY_ENDPOINT
public static final java.lang.String PROPERTY_MIDPOINT
public static final int POINT_START
public static final int POINT_END
public static final int POINT_MID
public CrossSectionSelector()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD errorjava.rmi.RemoteException - remote errorpublic CrossSectionSelector(visad.RealTuple startPoint,
visad.RealTuple endPoint)
throws visad.VisADException,
java.rmi.RemoteException
startPoint - XY position of starting pointendPoint - XY position of ending pointvisad.VisADException - VisAD errorjava.rmi.RemoteException - remote errorpublic CrossSectionSelector(visad.RealTuple startPoint,
visad.RealTuple endPoint,
java.awt.Color color)
throws visad.VisADException,
java.rmi.RemoteException
startPoint - XY position of starting pointendPoint - XY position of ending pointcolor - color for all components of this compositevisad.VisADException - VisAD errorjava.rmi.RemoteException - remote errorpublic CrossSectionSelector(CrossSectionSelector that) throws visad.VisADException, java.rmi.RemoteException
that - other instancevisad.VisADException - VisAD errorjava.rmi.RemoteException - remote errorpublic SelectorPoint getStartSelectorPoint()
public SelectorPoint getEndSelectorPoint()
public SelectorPoint getMiddleSelectorPoint()
public void dontShowStartPoint()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void dontShowMiddlePoint()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void dontShowEndPoint()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void setPointSize(float size)
throws visad.VisADException,
java.rmi.RemoteException
setPointSize in class SelectorDisplayablesize - point size in pixelsvisad.VisADException - VisAD errorjava.rmi.RemoteException - remote errorpublic void setColor(java.awt.Color newColor)
throws visad.VisADException,
java.rmi.RemoteException
setColor in class CompositeDisplayablenewColor - color for componentsvisad.VisADException - VisAD errorjava.rmi.RemoteException - remote errorpublic void setAutoSize(boolean yesorno)
throws visad.VisADException,
java.rmi.RemoteException
setAutoSize in class SelectorDisplayableyesorno - true to automatically resize the marker.java.rmi.RemoteExceptionvisad.VisADExceptionpublic void setZValue(double zValue)
throws visad.VisADException,
java.rmi.RemoteException
zValue - position along Z axis where components should be locatedvisad.VisADException - VisAD errorjava.rmi.RemoteException - remote errorpublic void setConstantPosition(double value,
visad.DisplayRealType type)
throws visad.VisADException,
java.rmi.RemoteException
setConstantPosition in class CompositeDisplayablevalue - Valuetype - Typejava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void setStartPtFixed(boolean value)
throws visad.VisADException,
java.rmi.RemoteException
value - true to be fixedjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setStartPointFixed(boolean value)
throws visad.VisADException,
java.rmi.RemoteException
value - true to be fixedjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setEndPointFixed(boolean value)
throws visad.VisADException,
java.rmi.RemoteException
value - true to be fixedjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setStartPointVisible(boolean value)
throws visad.VisADException,
java.rmi.RemoteException
value - true to be fixedjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setEndPointVisible(boolean value)
throws visad.VisADException,
java.rmi.RemoteException
value - true for visiblejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setMidPointVisible(boolean value)
throws visad.VisADException,
java.rmi.RemoteException
value - true for visiblejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setStartPoint(visad.RealTuple point)
throws visad.VisADException,
java.rmi.RemoteException
point - XY position as a RealTuplevisad.VisADException - bad pointjava.rmi.RemoteException - Java RMI errorpublic visad.RealTuple getStartPoint()
public void setMidPoint(visad.RealTuple point)
throws visad.VisADException,
java.rmi.RemoteException
point - XY position as a RealTuplevisad.VisADException - bad pointjava.rmi.RemoteException - Java RMI errorpublic visad.RealTuple getMidPoint()
public void setEndPoint(visad.RealTuple point)
throws visad.VisADException,
java.rmi.RemoteException
point - XY position as a RealTuplevisad.VisADException - bad pointjava.rmi.RemoteException - Java RMI errorpublic visad.RealTuple getEndPoint()
public void setPoint(int which,
visad.RealTuple point)
throws visad.VisADException,
java.rmi.RemoteException
which - either CrossSectionSelector.POINT_START or POINT_ENDpoint - point positionjava.rmi.RemoteException - Java RMI errorvisad.VisADException - bad pointpublic void setPosition(visad.RealTuple[] position)
throws visad.VisADException,
java.rmi.RemoteException
position - an array of size 2 that holds the start and end pointsjava.rmi.RemoteException - Java RMI errorvisad.VisADException - bad pointpublic visad.RealTuple[] getPosition()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Java RMI errorvisad.VisADException - bad pointpublic void setPosition(visad.RealTuple startPosition,
visad.RealTuple endPosition)
throws visad.VisADException,
java.rmi.RemoteException
startPosition - starting position for the selector lineendPosition - ending position for the selector linejava.rmi.RemoteException - Java RMI errorvisad.VisADException - bad pointprotected void positionHasChanged()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic Displayable cloneForDisplay() throws visad.VisADException, java.rmi.RemoteException
cloneForDisplay in class CompositeDisplayablevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void addStartPropertyChangeListener(java.beans.PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void removeStartPropertyChangeListener(java.beans.PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void addEndPropertyChangeListener(java.beans.PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void removeEndPropertyChangeListener(java.beans.PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void addMidPropertyChangeListener(java.beans.PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void removeMidPropertyChangeListener(java.beans.PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void setInterpolateLinePoints(boolean value)
throws visad.VisADException,
java.rmi.RemoteException
value - interpolatejava.rmi.RemoteException - on badnessvisad.VisADException - on badness