|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hdcookbook.grin.Feature
com.hdcookbook.grin.features.InterpolatedModel
com.hdcookbook.grin.features.SEInterpolatedModel
com.hdcookbook.grin.features.SETimer
public class SETimer
Field Summary |
---|
Fields inherited from class com.hdcookbook.grin.features.InterpolatedModel |
---|
currValues, endCommands, frames, loopCount, repeatFrame, SCALE_X_FACTOR_FIELD, SCALE_X_FIELD, SCALE_Y_FACTOR_FIELD, SCALE_Y_FIELD, values |
Fields inherited from class com.hdcookbook.grin.Feature |
---|
name, show |
Constructor Summary | |
---|---|
SETimer()
|
Method Summary | |
---|---|
void |
accept(SEShowVisitor visitor)
Calls the visit method corresponding to this node type. |
int |
getNumFrames()
|
void |
scaleBy(int xScale,
int yScale,
int xOffset,
int yOffset)
Scale this node by the given scale factor, and apply the given offset. |
java.lang.String |
toString()
|
Methods inherited from class com.hdcookbook.grin.features.SEInterpolatedModel |
---|
changeFeatureReference, getCurrValues, getFrames, getLoopCount, getRepeatFrame, getRuntimeClassName, getValues, postProcess, setCurrValues, setEndCommands, setFrames, setRepeatFrame, setup, setValues, writeInstanceData |
Methods inherited from class com.hdcookbook.grin.features.InterpolatedModel |
---|
addDisplayAreas, createClone, destroy, getEndCommands, getField, getX, getY, initialize, initializeClone, markDisplayAreasChanged, needsMoreSetup, nextFrame, paintFrame, readInstanceData, scaleBounds, setActivateMode, setField, setSetupMode |
Methods inherited from class com.hdcookbook.grin.Feature |
---|
activate, addSubgraph, cloneCommands, clonedReference, cloneSubgraph, deactivate, destroyClonedSubgraph, getName, isSetup, makeNewClone, resetFeature, sendFeatureSetup, setName, setup, unsetup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SETimer()
Method Detail |
---|
public int getNumFrames()
public void accept(SEShowVisitor visitor)
SENode
If you are defining a user-defined feature, there are some
restrictions that you'll want to follow. If your extension is
a feature that has children, then you should make it a subclass
of one of the built-in feature types, Assembly, Modifer or Group.
That's because the GRIN compiler defines visitors that need to
visit every node in the tree, but these built-in visitors don't
know about your extension types. By making your extension type
a subclass of one of the standard ones, and by making your
accept()
method call either
visitAssembly()
, visitGroup()
or
visitUserDefinedModifier()
, as appropriate,
you'll ensure that all the children get visited.
accept
in interface SENode
accept
in class SEInterpolatedModel
visitor
- SEShowVisitor object.SEShowVisitor
public void scaleBy(int xScale, int yScale, int xOffset, int yOffset)
scaleBy
in interface SEScalableNode
xScale
- x scale factor in millsyScale
- y scale factor in millsxOffset
- x offset in pixelsyOffset
- y offset in pixelspublic java.lang.String toString()
toString
in class SEInterpolatedModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |