|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.chart.model.ChartPoint
com.jidesoft.chart.model.ModelMorpher.TransitionPoint
public static class ModelMorpher.TransitionPoint
A class specialised for the transition task - it knows where it is moving from and where to, as well as its current position. It could also be given a strategy of how to get there, so that different points can use different strategies to get there.
| Constructor Summary | |
|---|---|
ModelMorpher.TransitionPoint()
Create a new Transition Point |
|
ModelMorpher.TransitionPoint(Chartable source,
Chartable target)
Create a transition point using the supplied source and target points |
|
| Method Summary | |
|---|---|
double |
getPosition()
Returns the position of the transition on a scale from 0 (source) to 1 (target) |
Chartable |
getSource()
Returns the point before the transition |
Chartable |
getTarget()
Returns the point after the transition |
void |
setPosition(double position)
Specify the position of the transition on a scale from 0 (source) to 1 (target) |
void |
setSource(Chartable source)
Specify the point before the transition |
void |
setTarget(Chartable target)
Specify the point after the transition |
protected void |
update()
Update the location of the point according to the position and using the source and target locations. |
| Methods inherited from class com.jidesoft.chart.model.ChartPoint |
|---|
compareTo, equals, getHighlight, getName, getX, getY, hashCode, isHighlight, setHighlight, setName, setX, setY, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModelMorpher.TransitionPoint()
public ModelMorpher.TransitionPoint(Chartable source,
Chartable target)
source - the location of the point before the transitiontarget - the location of the point after the transition| Method Detail |
|---|
public Chartable getSource()
public void setSource(Chartable source)
source - the point before the transitionpublic Chartable getTarget()
public void setTarget(Chartable target)
target - the point after the transitionpublic double getPosition()
public void setPosition(double position)
position - the position of the transition on a scale from 0 (source) to 1 (target)protected void update()
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||