|
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.ModelMorpher
public class ModelMorpher
A class to manage the transition ('morphing') from one ChartModel to another.
Note: This class is in Beta status and is subject to change.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
static String |
PROPERTY_MORPH_ENDED
|
static String |
PROPERTY_MORPH_MODELS
|
static String |
PROPERTY_MORPH_STARTED
|
| Constructor Summary | |
|---|---|
ModelMorpher()
This constructor is provided mainly for Java Bean compatibility. |
|
ModelMorpher(Chart chart)
Create a ModelMorpher instance and inform it of the chart object containing the model to transform. |
|
ModelMorpher(Chart chart,
int numSteps,
int delay)
Create a ModelMorpher instance on the supplied Chart. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this object. |
protected Chartable |
createIntermediate(Chartable source,
Chartable target,
double position)
Creates an intermediate point to be used during the transition |
Chart |
getChart()
Returns the chart object used by this class |
ChartStyle |
getSourceStyle()
Deprecated. this is unused and will be removed some time after 3.2.4 |
ChartStyle |
getTargetStyle()
Deprecated. this is unused and will be removed some time after 3.2.4 |
boolean |
isAutoRepaint()
|
boolean |
isMorphing()
Returns true if a morph is currently in progress |
void |
morph(ChartModel[] sourceModels,
ChartStyle[] sourceStyles,
ChartModel[] targetModels,
ChartStyle[] targetStyles)
|
void |
morph(ChartModel[] sourceModels,
ChartStyle[] sourceStyles,
ListSelectionModel[] selectionModels,
ChartModel[] targetModels,
ChartStyle[] targetStyles)
|
void |
morph(ChartModel sourceModel,
ChartStyle sourceStyle,
ChartModel targetModel,
ChartStyle targetStyle)
Perform a transition from the sourceModel to the targetModel. |
void |
morph(ChartModel sourceModel,
ChartStyle sourceStyle,
ListSelectionModel selectionModel,
ChartModel targetModel,
ChartStyle targetStyle)
Perform a transition from the sourceModel to the targetModel. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this object. |
void |
setAutoRepaint(boolean autoRepaint)
|
void |
setChart(Chart chart)
Specify the chart object to be used by this morpher |
void |
setSourceStyle(ChartStyle sourceStyle)
Deprecated. this is unused and will be removed some time after 3.2.4 |
void |
setTargetStyle(ChartStyle targetStyle)
Deprecated. this is unused and will be removed some time after 3.2.4 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_MORPH_STARTED
public static final String PROPERTY_MORPH_ENDED
public static final String PROPERTY_MORPH_MODELS
| Constructor Detail |
|---|
public ModelMorpher()
setChart to inform the object of the chart on which it operates.
public ModelMorpher(Chart chart)
chart - the chart object containing the model of interest
public ModelMorpher(Chart chart,
int numSteps,
int delay)
Chart.
chart - the chart object containing the model(s) to be transformednumSteps - the number of steps in a transitiondelay - the delay between the steps, in milliseconds| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - the property change listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - the property change listener to remove
public void morph(ChartModel sourceModel,
ChartStyle sourceStyle,
ChartModel targetModel,
ChartStyle targetStyle)
sourceModel - the original position before the morphsourceStyle - the original ChartStyle before the morphtargetModel - the end ChartModel, after the transitiontargetStyle - the end ChartStyle, after the transition
public void morph(ChartModel[] sourceModels,
ChartStyle[] sourceStyles,
ChartModel[] targetModels,
ChartStyle[] targetStyles)
public void morph(ChartModel sourceModel,
ChartStyle sourceStyle,
ListSelectionModel selectionModel,
ChartModel targetModel,
ChartStyle targetStyle)
sourceModel - the original position before the morphsourceStyle - the original ChartStyle before the morphselectionModel - the selection model to use during the transitiontargetModel - the end ChartModel, after the transitiontargetStyle - the end ChartStyle, after the transition
public void morph(ChartModel[] sourceModels,
ChartStyle[] sourceStyles,
ListSelectionModel[] selectionModels,
ChartModel[] targetModels,
ChartStyle[] targetStyles)
public Chart getChart()
public void setChart(Chart chart)
chart - the chart objectpublic ChartStyle getSourceStyle()
public void setSourceStyle(ChartStyle sourceStyle)
sourceStyle - the ChartStyle before the transitionpublic ChartStyle getTargetStyle()
public void setTargetStyle(ChartStyle targetStyle)
targetStyle - the chart style to use at the end of the transitionpublic boolean isAutoRepaint()
public void setAutoRepaint(boolean autoRepaint)
public boolean isMorphing()
protected Chartable createIntermediate(Chartable source,
Chartable target,
double position)
source - the source pointtarget - the corresponding target pointposition - the position on a scale from 0 (source) to 1 (target)
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||