edu.washington.NVisF.plotter
Class PositionStrategy
java.lang.Object
|
+--edu.washington.NVisF.plotter.PositionStrategy
- public class PositionStrategy
- extends java.lang.Object
A PositionStrategy defines how to construct 3-D positions from the
data. This class uses a vector field of the desired objects as the
positions; the default is simply the data field "position". Subclasses
of this class can override the getPositions(command) method to provide
different behavior.
A PlotCommand
is used as the data source.
Constructor Summary |
PositionStrategy()
Constructs a new PositionStrategy that will use the "position" field
of the data for its positions. |
PositionStrategy(java.lang.String fieldName)
Constructs a new PositionStrategy that will use the specified field
of the data for its positions. |
Method Summary |
java.lang.String |
getFieldName()
Returns the name of the data field used as positions. |
java.lang.String |
setFieldName(java.lang.String fieldName)
Sets the new name of the data field to use for positions. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PositionStrategy
public PositionStrategy()
- Constructs a new PositionStrategy that will use the "position" field
of the data for its positions.
PositionStrategy
public PositionStrategy(java.lang.String fieldName)
- Constructs a new PositionStrategy that will use the specified field
of the data for its positions.
- Parameters:
fieldName
- the name of the DataField
getFieldName
public java.lang.String getFieldName()
- Returns the name of the data field used as positions.
setFieldName
public java.lang.String setFieldName(java.lang.String fieldName)
- Sets the new name of the data field to use for positions. The return
value is the previous name, or null if the input parameter is null (in
which case no change is made).
- Parameters:
fieldName
- the new data field to use- Returns:
- String the data field previously used, or null