|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.svg.Diagram org.newdawn.slick.svg.SVGMorph
public class SVGMorph
A utility to allow morphing between a set of similar SVG diagrams
Constructor Summary | |
---|---|
SVGMorph(Diagram diagram)
Create a new morph with a first diagram base |
Method Summary | |
---|---|
void |
addStep(Diagram diagram)
Add a subsquent step to the morphing |
Figure |
getFigure(int index)
Get the figure at a given index |
int |
getFigureCount()
Get the number of figures in the diagram |
void |
setExternalDiagram(Diagram diagram)
Set the current diagram we should morph from. |
void |
setMorphTime(float time)
Set the "time" index for this morph. |
void |
updateMorphTime(float delta)
Update the morph time index by the amount specified |
Methods inherited from class org.newdawn.slick.svg.Diagram |
---|
addFigure, addGradient, addPatternDef, getFigureByID, getGradient, getHeight, getPatternDef, getPatternDefNames, getWidth, removeFigure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVGMorph(Diagram diagram)
diagram
- The base diagram which provides the first step of the morphMethod Detail |
---|
public void addStep(Diagram diagram)
diagram
- The diagram to add as the next step in the morphpublic void setExternalDiagram(Diagram diagram)
diagram
- The diagram to use as the base of the morphpublic void updateMorphTime(float delta)
delta
- The amount to update the morph bypublic void setMorphTime(float time)
time
- The time index to represent on this diagramspublic int getFigureCount()
Diagram
getFigureCount
in class Diagram
Diagram.getFigureCount()
public Figure getFigure(int index)
Diagram
getFigure
in class Diagram
index
- The index of the figure to retrieve
Diagram.getFigure(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |