|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.visad.display.SelectorDisplayable
ucar.visad.display.CrossSectionSelector
public class CrossSectionSelector
CrossSectionSelector is a composite of two endpoints that can be moved independently, a line connecting the two points, and a middle point that can be used to move orthoganally to the line.
| Field Summary | |
|---|---|
static int |
POINT_END
end point id |
static int |
POINT_MID
mid point id |
static int |
POINT_START
start point id |
static String |
PROPERTY_ENDPOINT
position property |
static String |
PROPERTY_MIDPOINT
position property |
static String |
PROPERTY_STARTPOINT
position property |
| Fields inherited from class ucar.visad.display.SelectorDisplayable |
|---|
PROPERTY_POSITION |
| Fields inherited from class ucar.visad.display.CompositeDisplayable |
|---|
cnt, label |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
CrossSectionSelector()
Construct a CrossSectionSelector with default. |
|
CrossSectionSelector(CrossSectionSelector that)
Construct a CrossSectionSelector from another instance |
|
CrossSectionSelector(RealTuple startPoint,
RealTuple endPoint)
Construct a CrossSectionSelector along the points specified. |
|
CrossSectionSelector(RealTuple startPoint,
RealTuple endPoint,
Color color)
Construct a CrossSectionSelector along the points specified in the Color specified. |
|
| Method Summary | |
|---|---|
void |
addEndPropertyChangeListener(PropertyChangeListener action)
Adds a listener for data changes. |
void |
addMidPropertyChangeListener(PropertyChangeListener action)
Adds a listener for data changes. |
void |
addStartPropertyChangeListener(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 |
RealTuple |
getEndPoint()
Get the position of the ending point of the line. |
SelectorPoint |
getEndSelectorPoint()
get the selector point |
SelectorPoint |
getMiddleSelectorPoint()
get the selector point |
RealTuple |
getMidPoint()
Get the position of the middle point of the line. |
RealTuple[] |
getPosition()
Get the position of the ending point of the line. |
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(PropertyChangeListener action)
Removes a listener for data changes. |
void |
removeMidPropertyChangeListener(PropertyChangeListener action)
Removes a listener for data changes. |
void |
removeStartPropertyChangeListener(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(Color newColor)
Set the color of the selector points. |
void |
setConstantPosition(double value,
DisplayRealType type)
Override base class method |
void |
setEndPoint(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(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,
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(RealTuple[] position)
Set the position of the ending point of the line. |
void |
setPosition(RealTuple startPosition,
RealTuple endPosition)
Set the position of the ending point of the line. |
void |
setStartPoint(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 |
| Methods inherited from class ucar.visad.display.SelectorDisplayable |
|---|
addPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setOkToFireEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_STARTPOINT
public static final String PROPERTY_ENDPOINT
public static final String PROPERTY_MIDPOINT
public static final int POINT_START
public static final int POINT_END
public static final int POINT_MID
| Constructor Detail |
|---|
public CrossSectionSelector()
throws VisADException,
RemoteException
VisADException - VisAD error
RemoteException - remote error
public CrossSectionSelector(RealTuple startPoint,
RealTuple endPoint)
throws VisADException,
RemoteException
startPoint - XY position of starting pointendPoint - XY position of ending point
VisADException - VisAD error
RemoteException - remote error
public CrossSectionSelector(RealTuple startPoint,
RealTuple endPoint,
Color color)
throws VisADException,
RemoteException
startPoint - XY position of starting pointendPoint - XY position of ending pointcolor - color for all components of this composite
VisADException - VisAD error
RemoteException - remote error
public CrossSectionSelector(CrossSectionSelector that)
throws VisADException,
RemoteException
that - other instance
VisADException - VisAD error
RemoteException - remote error| Method Detail |
|---|
public SelectorPoint getStartSelectorPoint()
public SelectorPoint getEndSelectorPoint()
public SelectorPoint getMiddleSelectorPoint()
public void dontShowStartPoint()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void dontShowMiddlePoint()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void dontShowEndPoint()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void setPointSize(float size)
throws VisADException,
RemoteException
setPointSize in class SelectorDisplayablesize - point size in pixels
VisADException - VisAD error
RemoteException - remote error
public void setColor(Color newColor)
throws VisADException,
RemoteException
setColor in class CompositeDisplayablenewColor - color for components
VisADException - VisAD error
RemoteException - remote error
public void setAutoSize(boolean yesorno)
throws VisADException,
RemoteException
setAutoSize in class SelectorDisplayableyesorno - true to automatically resize the marker.
RemoteException
VisADException
public void setZValue(double zValue)
throws VisADException,
RemoteException
zValue - position along Z axis where components should be located
VisADException - VisAD error
RemoteException - remote error
public void setConstantPosition(double value,
DisplayRealType type)
throws VisADException,
RemoteException
setConstantPosition in class CompositeDisplayablevalue - Valuetype - Type
RemoteException - On badness
VisADException - On badness
public void setStartPtFixed(boolean value)
throws VisADException,
RemoteException
value - true to be fixed
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setStartPointFixed(boolean value)
throws VisADException,
RemoteException
value - true to be fixed
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setEndPointFixed(boolean value)
throws VisADException,
RemoteException
value - true to be fixed
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setStartPointVisible(boolean value)
throws VisADException,
RemoteException
value - true to be fixed
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setEndPointVisible(boolean value)
throws VisADException,
RemoteException
value - true for visible
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setMidPointVisible(boolean value)
throws VisADException,
RemoteException
value - true for visible
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setStartPoint(RealTuple point)
throws VisADException,
RemoteException
point - XY position as a RealTuple
VisADException - bad point
RemoteException - Java RMI errorpublic RealTuple getStartPoint()
public void setMidPoint(RealTuple point)
throws VisADException,
RemoteException
point - XY position as a RealTuple
VisADException - bad point
RemoteException - Java RMI errorpublic RealTuple getMidPoint()
public void setEndPoint(RealTuple point)
throws VisADException,
RemoteException
point - XY position as a RealTuple
VisADException - bad point
RemoteException - Java RMI errorpublic RealTuple getEndPoint()
public void setPoint(int which,
RealTuple point)
throws VisADException,
RemoteException
which - either CrossSectionSelector.POINT_START or POINT_ENDpoint - point position
RemoteException - Java RMI error
VisADException - bad point
public void setPosition(RealTuple[] position)
throws VisADException,
RemoteException
position - an array of size 2 that holds the start and end points
RemoteException - Java RMI error
VisADException - bad point
public RealTuple[] getPosition()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - bad point
public void setPosition(RealTuple startPosition,
RealTuple endPosition)
throws VisADException,
RemoteException
startPosition - starting position for the selector lineendPosition - ending position for the selector line
RemoteException - Java RMI error
VisADException - bad point
protected void positionHasChanged()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public Displayable cloneForDisplay()
throws VisADException,
RemoteException
cloneForDisplay in class CompositeDisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.public void addStartPropertyChangeListener(PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void removeStartPropertyChangeListener(PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void addEndPropertyChangeListener(PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void removeEndPropertyChangeListener(PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void addMidPropertyChangeListener(PropertyChangeListener action)
action - The listener for changes to the underlying
data.public void removeMidPropertyChangeListener(PropertyChangeListener action)
action - The listener for changes to the underlying
data.
public void setInterpolateLinePoints(boolean value)
throws VisADException,
RemoteException
value - interpolate
RemoteException - on badness
VisADException - on badness
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||