|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.typesetter.type.node.AbstractNode
de.dante.extex.typesetter.type.node.RuleNode
The rule node represents a rectangular area on the page filled with some color.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Fields inherited from class de.dante.extex.typesetter.type.node.AbstractNode |
NO_CHARS |
Constructor Summary | |
RuleNode(FixedDimen width,
FixedDimen height,
FixedDimen depth,
TypesettingContext theContext,
boolean horizontal)
Creates a new object. |
Method Summary | |
TypesettingContext |
getTypesettingContext()
Getter for the typesetting context. |
boolean |
isHorizontal()
Getter for horizontal. |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
This method puts the printable representation into the string buffer. |
void |
toText(java.lang.StringBuffer sb,
java.lang.String prefix)
This method puts the printable representation into the string buffer. |
java.lang.Object |
visit(NodeVisitor visitor,
java.lang.Object value)
This method provides an entry point for the visitor pattern. |
Methods inherited from class de.dante.extex.typesetter.type.node.AbstractNode |
addDepthTo, addHeightTo, addWidthTo, advanceDepth, advanceHeight, advanceWidth, atShipping, computeAdjustment, countChars, getChars, getDepth, getHeight, getLocalizer, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth, toString, toText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.dante.extex.typesetter.type.Node |
addDepthTo, addHeightTo, addWidthTo, atShipping, countChars, getChars, getDepth, getHeight, getVerticalSize, getWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public RuleNode(FixedDimen width, FixedDimen height, FixedDimen depth, TypesettingContext theContext, boolean horizontal)
width
- the width of the ruleheight
- the height of the ruledepth
- the depth of the ruletheContext
- the typesetting contexthorizontal
- the indicator that this is a
horizontal rule; otherwise it is a vertical ruleMethod Detail |
public TypesettingContext getTypesettingContext()
public boolean isHorizontal()
public void toString(java.lang.StringBuffer sb, java.lang.String prefix, int breadth, int depth)
toString
in interface Node
toString
in class AbstractNode
sb
- the output string bufferprefix
- the prefix string inserted at the beginning of each linebreadth
- the breadthdepth
- the depthNode.toString(
java.lang.StringBuffer,
java.lang.String,
int,
int)
public void toText(java.lang.StringBuffer sb, java.lang.String prefix)
Node
toText
in interface Node
toText
in class AbstractNode
sb
- the output string bufferprefix
- the string prepended to each line of the resulting textNode.toText(
java.lang.StringBuffer,
java.lang.String)
public java.lang.Object visit(NodeVisitor visitor, java.lang.Object value) throws GeneralException
Node
visit
in interface Node
visitor
- the visitor to applyvalue
- the argument for the visitor
GeneralException
- in case of an errorNode.visit(
de.dante.extex.typesetter.type.NodeVisitor,
java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |