Modifier and Type | Field and Description |
---|---|
static XYArrayPlacement |
INDEX
Uses X,Y position at indicated fraction through arrays.
|
static XYArrayPlacement |
XMAX
Uses the position with the maximal X value.
|
static XYArrayPlacement |
XMIN
Uses the position with the minimal X value.
|
static XYArrayPlacement |
XYMEAN
Uses the center of gravity of all the (X,Y) values.
|
static XYArrayPlacement |
YMAX
Uses the position with the maximal Y value.
|
static XYArrayPlacement |
YMIN
Uses the position with the minimal Y value.
|
Modifier | Constructor and Description |
---|---|
protected |
XYArrayPlacement(String name,
String description,
boolean usesFraction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns this placement policy's description.
|
String |
getName()
Returns this placement policy's name.
|
abstract boolean |
readPosition(XYArrayData xyData,
double fraction,
double[] dpos)
Attempts to determine the reference position of an XYArrayData object.
|
String |
toString() |
boolean |
usesFraction()
Indicates whether this placement pays attention to the value of
the fraction parameter.
|
public static final XYArrayPlacement INDEX
public static final XYArrayPlacement XMAX
public static final XYArrayPlacement XMIN
public static final XYArrayPlacement YMAX
public static final XYArrayPlacement YMIN
public static final XYArrayPlacement XYMEAN
protected XYArrayPlacement(String name, String description, boolean usesFraction)
name
- short name for presentation to usersdescription
- XML-friendly description of behaviourusesFraction
- true iff this placement pays any attention
to the value of the fraction parameterpublic String getName()
public String getDescription()
public boolean usesFraction()
public abstract boolean readPosition(XYArrayData xyData, double fraction, double[] dpos)
xyData
- XY data, not nullfraction
- numeric value in the range 0..1;
may or may not be useddpos
- 2-element array for X, Y output on successCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.