|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.data.AxisRange
public class AxisRange
Defines a range along some coordinate axis.
Field Summary | |
---|---|
protected CoordAxis |
axis
|
protected Range |
range
|
Constructor Summary | |
---|---|
AxisRange(CoordAxis axis)
Creates an AxisRange for the specified axis with origin and extent equal to that of the axis. |
|
AxisRange(CoordAxis axis,
int origin,
int extent)
Creates an AxisRange for the specified axis with the specified origin and extent. |
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
Gets the value of the named attribute. |
CoordAxis |
getAxis()
Gets the coordinate axis for which this is a range. |
AxisType |
getAxisType()
Gets the type of this axis. |
java.lang.String |
getDescription()
Gets the description of this CoordAxis. |
int |
getExtent()
Gets the extent of the range. |
java.lang.String |
getName()
Gets the name of this CoordAxis. |
int |
getOrigin()
Gets the origin of the range. |
Range |
getRange()
Gets the range of this axis. |
javax.measure.unit.Unit<?> |
getUnits()
Gets the unit of measurement for this coordinate axis. |
double |
getValue(int index)
Gets the value at the specified index. |
java.lang.String |
getValueAsString(int index)
Gets the value as String at the specified index. |
boolean |
isCompatible(CoordAxis axis)
Gets whether or not the this axis is compatible with the specified axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CoordAxis axis
protected Range range
Constructor Detail |
---|
public AxisRange(CoordAxis axis)
axis
- the axispublic AxisRange(CoordAxis axis, int origin, int extent)
origin
- the origin of the rangeextent
- the extent of the rangeaxis
- the axisMethod Detail |
---|
public CoordAxis getAxis()
public java.lang.String getAttribute(java.lang.String name)
CoordAxis
getAttribute
in interface CoordAxis
name
- the name of the attribute.
public javax.measure.unit.Unit<?> getUnits()
getUnits
in interface CoordAxis
public boolean isCompatible(CoordAxis axis)
isCompatible
in interface CoordAxis
axis
- the axis to check for compatibility
public double getValue(int index)
getValue
in interface CoordAxis
index
- the index
public java.lang.String getValueAsString(int index)
getValueAsString
in interface CoordAxis
index
- the index of the value to get
public java.lang.String getDescription()
getDescription
in interface CoordAxis
public java.lang.String getName()
getName
in interface CoordAxis
public Range getRange()
getRange
in interface CoordAxis
public int getExtent()
public int getOrigin()
public AxisType getAxisType()
getAxisType
in interface CoordAxis
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |