public final class DiaxialScoping extends Object implements Scoping
Switch | Controlled state | Default |
---|---|---|
s | The scoping state. 4 continguous numbers all padded to the same digit length, together representing the ranges of both axes (x,y). Each number is translated to a decimal by adding a leading decimal. An exception is made for numbers beginning with the letter N, which are always translated as 1.0. For example "s=00NN1030" is taken as x in the range 0.00 to 1.00 and y 0.10 to 0.30. | "0N0N" which specifies the full range on both axes. |
Scoping
Modifier and Type | Field and Description |
---|---|
(package private) static String |
assumedNumericPrefix |
Constructor and Description |
---|
DiaxialScoping(Spool spool)
Constructs a DiaxialScoping.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addHandler(ScopeChangeHandler handler)
Registers a handler to receive change events fired from this scoping model.
|
(package private) static float |
floatFrom(String s,
int offset,
int digitLength,
StringBuilder buf) |
String |
toString() |
float |
xMax()
The x-axis maximum value, inclusive.
|
float |
xMin()
The x-axis minimum value, inclusive.
|
float |
yMax()
The y-axis maximum value, inclusive.
|
float |
yMin()
The y-axis minimum value, inclusive.
|
static final String assumedNumericPrefix
public DiaxialScoping(Spool spool)
spool
- for release of internal holds. When unwound, this instance will
release its internal holds and become disabled.public float xMin()
public float xMax()
public float yMin()
public float yMax()
public HandlerRegistration addHandler(ScopeChangeHandler handler)
Scoping
addHandler
in interface Scoping
ScopeChangeEvent.addHandler(ScopeChangeHandler)
static float floatFrom(String s, int offset, int digitLength, StringBuilder buf)