|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odesys.chart.AxisPositioner
AxisPositioner helps position the axis in a way that as many as possible of the constraints are satisfied. The constrraints are used to make sure that all labels are visible.
Constructor Summary | |
AxisPositioner(int min,
int max)
Creates a new AxisPositioner with the specified min and max axis length |
Method Summary | |
void |
addConstraint(float pos,
int value,
float weight)
Adds a new AxisConstraint to this Axis. |
int |
getLength()
Gets the length of the axis. |
int |
getOffset()
Gets the offset of the axis. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AxisPositioner(int min, int max)
Method Detail |
public void addConstraint(float pos, int value, float weight)
pos
- The position of the new AxisConstraintvalue
- The value of the new AxisConstraint. The negative values add
distance to the left, the positive values add distance to the right.weight
- The weight of the new new AxisConstraintpublic int getLength()
public int getOffset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |