|
|||||||||
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.fontstrip.FontStripText
com.hdcookbook.grin.fontstrip.SEFontStripText
public class SEFontStripText
Field Summary |
---|
Fields inherited from class com.hdcookbook.grin.fontstrip.FontStripText |
---|
alignment, background, BASELINE, BOTTOM, fontImageFileName, hspace, INFOFILE, LEFT, MIDDLE, RIGHT, strings, TOP, vspace, xArg, yArg |
Fields inherited from class com.hdcookbook.grin.Feature |
---|
name, show |
Constructor Summary | |
---|---|
SEFontStripText(Show show)
|
|
SEFontStripText(Show show,
int xArg,
int yArg,
int alignment,
java.lang.String[] strings,
java.lang.String fileName,
int hspace,
int vspace,
java.awt.Color background)
|
Method Summary | |
---|---|
void |
accept(SEShowVisitor visitor)
For a visitor method |
void |
changeFeatureReference(Feature from,
Feature to)
Change a feature reference from one feature to a new one. |
java.lang.String |
getRuntimeClassName()
For xlet runtime, FonrStripText class instance should be used. |
void |
postProcess(ShowBuilder builder)
Do any needed post-processing in this show. |
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()
|
void |
writeInstanceData(GrinDataOutputStream out)
Record this node information to the binary file format. |
Methods inherited from class com.hdcookbook.grin.fontstrip.FontStripText |
---|
addDisplayAreas, destroy, doSomeSetup, getLineHeight, getText, getX, getY, initialize, markDisplayAreasChanged, needsMoreSetup, nextFrame, paintFrame, readInstanceData, setActivateMode, setSetupMode, setText |
Methods inherited from class com.hdcookbook.grin.Feature |
---|
activate, addSubgraph, cloneCommands, clonedReference, cloneSubgraph, createClone, deactivate, destroyClonedSubgraph, getName, initializeClone, 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 SEFontStripText(Show show)
public SEFontStripText(Show show, int xArg, int yArg, int alignment, java.lang.String[] strings, java.lang.String fileName, int hspace, int vspace, java.awt.Color background)
Method Detail |
---|
public void writeInstanceData(GrinDataOutputStream out) throws java.io.IOException
SENode
writeInstanceData
in interface SENode
out
- The stream to write out.
java.io.IOException
- if error occurs.GrinDataOutputStream.writeSuperClassData(Feature)
,
GrinDataOutputStream.writeSuperClassData(RCHandler)
,
GrinDataOutputStream.writeSuperClassData(Segment)
,
GrinDataOutputStream.writeSuperClassData(Command)
public java.lang.String getRuntimeClassName()
getRuntimeClassName
in interface SENode
public void accept(SEShowVisitor visitor)
accept
in interface SENode
visitor
- SEShowVisitor object.SEShowVisitor
public void postProcess(ShowBuilder builder) throws java.io.IOException
During the post-process phase, a node can add new features to the
show, by calling ShowBuilder.addSyntheticFeature()
,
and it can insert a new feature as the parent of a given feature,
by calling ShowBuilder.injectParent()
. It can also
add segments and handlers by calling the appropriate builder methods.
When a parent is injected, the ShowBuilder calls postProcess() on all nodes automatically, including nodes that are created during the execution of postProcess() in another node.
postProcess
in interface SENode
builder
- The builder that holds state for the show
java.io.IOException
- if an error is encounteredShowBuilder.addSyntheticFeature(Feature)
,
ShowBuilder.injectParent(Feature, Feature)
public void changeFeatureReference(Feature from, Feature to)
from
, it should be
changed to refer to to
. This is called for every node
in an SEShow when SENode.injectParent
is used.
The ShowBuilder calls changeFeatureReference() on all nodes automatically, including nodes that are created during the execution of postProcess().
changeFeatureReference
in interface SENode
SENode.changeFeatureReference(Feature, Feature)
public void scaleBy(int xScale, int yScale, int xOffset, int yOffset)
Note that you must also build the font strip .png image with the same scale factors.
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 Feature
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |