|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.graphics.instruments.NumberDescriptor<_UNIT_>
_UNIT_ - - the unit that the numbers are based onpublic class NumberDescriptor<_UNIT_ extends I_Unitable<_UNIT_>>
Defines a number descriptor.
| Field Summary | |
|---|---|
private int |
_divider
the divider to scale the order of magnitude of the numbers |
private Interval<_UNIT_> |
_interval
the interval over which the numbers range |
private boolean |
_isRotated
whether to rotate the numbers to align their base to the origin |
private Scaler |
_radius
the radius scaler from the origin around which the numbers are arrayed |
private AngleMathematical |
_rotationOffset
the offset for starting the number series |
private java.util.Map<java.lang.Integer,java.lang.String> |
_substitutions
any substitutions to replace numbers with text |
private TextProperties |
_textProperties
the text properties |
| Constructor Summary | |
|---|---|
NumberDescriptor(Interval<_UNIT_> interval,
double radiusScaler,
TextProperties textProperties,
AngleMathematical rotationOffset,
int divider)
Creates a number descriptor. |
|
NumberDescriptor(Interval<_UNIT_> interval,
double radiusScaler,
TextProperties textProperties,
boolean isRotated,
AngleMathematical rotationOffset,
int divider)
Creates a number descriptor. |
|
NumberDescriptor(Interval<_UNIT_> interval,
double radiusScaler,
TextProperties textProperties,
int divider)
Creates a number descriptor. |
|
NumberDescriptor(Interval<_UNIT_> interval,
Scaler radius,
TextProperties textProperties,
boolean isRotated,
AngleMathematical rotationOffset,
int divider)
Creates a number descriptor. |
|
| Method Summary | |
|---|---|
void |
addSubstitution(int number,
java.lang.String substitution)
Adds a substitution to replace a number with text. |
int |
getDivider()
Gets the divider to scale the order of magnitude of the numbers. |
Interval<_UNIT_> |
getInterval()
Gets the interval over which the numbers range. |
Scaler |
getRadiusScaler()
Gets the radius scaler from the origin around which the numbers are arrayed. |
AngleMathematical |
getRotationOffset()
Gets the offset for starting the number series. |
java.lang.String |
getSubstitution(int number)
Gets the substitution that replaces a number with text. |
TextProperties |
getTextProperties()
Gets the text properties. |
boolean |
hasSubstitution(int number)
Gets whether there is a text substitution for a number. |
boolean |
hasSubstitutions()
Returns whether there are any substitutions that replace numbers with text. |
boolean |
isRotated()
Gets whether to rotate the numbers to align their base to the origin. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final int _divider
private final Interval<_UNIT_ extends I_Unitable<_UNIT_>> _interval
private final boolean _isRotated
private final Scaler _radius
private final AngleMathematical _rotationOffset
private final java.util.Map<java.lang.Integer,java.lang.String> _substitutions
private final TextProperties _textProperties
| Constructor Detail |
|---|
public NumberDescriptor(Interval<_UNIT_> interval,
double radiusScaler,
TextProperties textProperties,
AngleMathematical rotationOffset,
int divider)
interval - - the interval over which the numbers rangeradiusScaler - - the radius scaler from the origin around which the numbers are arrayedtextProperties - - the text propertiesrotationOffset - - the offset for starting the number seriesdivider - - the divider to scale the order of magnitude of the numbers
public NumberDescriptor(Interval<_UNIT_> interval,
double radiusScaler,
TextProperties textProperties,
boolean isRotated,
AngleMathematical rotationOffset,
int divider)
interval - - the interval over which the numbers rangeradiusScaler - - the radius scaler from the origin around which the numbers are arrayedtextProperties - - the text propertiesisRotated - - whether to rotate the numbers to align their base to the originrotationOffset - - the offset for starting the number seriesdivider - - the divider to scale the order of magnitude of the numbers
public NumberDescriptor(Interval<_UNIT_> interval,
double radiusScaler,
TextProperties textProperties,
int divider)
interval - - the interval over which the numbers rangeradiusScaler - - the radius scaler from the origin around which the numbers are arrayedtextProperties - - the text propertiesdivider - - the divider to scale the order of magnitude of the numbers
public NumberDescriptor(Interval<_UNIT_> interval,
Scaler radius,
TextProperties textProperties,
boolean isRotated,
AngleMathematical rotationOffset,
int divider)
interval - - the interval over which the numbers rangeradius - - the radius scaler from the origin around which the numbers are arrayedtextProperties - - the text propertiesisRotated - - whether to rotate the numbers to align their base to the originrotationOffset - - the offset for starting the number seriesdivider - - the divider to scale the order of magnitude of the numbers| Method Detail |
|---|
public void addSubstitution(int number,
java.lang.String substitution)
number - - the numbersubstitution - - the textpublic int getDivider()
public Interval<_UNIT_> getInterval()
public Scaler getRadiusScaler()
public AngleMathematical getRotationOffset()
public java.lang.String getSubstitution(int number)
number - - the number
public TextProperties getTextProperties()
public boolean hasSubstitution(int number)
number - - the number
public boolean hasSubstitutions()
public boolean isRotated()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||