|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.layouting.renderer.model.RenderNode
org.jfree.layouting.renderer.model.RenderBox
public abstract class RenderBox
A render-box corresponds to elements in a DOM tree.
Each box has a size, paddings, margins and borders. Boxes may have one or more childs. While all nodes may have a position or dimensions, boxes are special, as they can have borders, margins and paddings. Borders, paddings and margins can have percentages, the margins can additionally be 'auto'. The StrictInset variables for these properties contain the resolved values, while the box-definition contain the unresolved values. The resolve values are not valid unless the object has been validated to least least 'LAYOUTING'.
Field Summary | |
---|---|
static boolean |
LOG_PRUNE
|
Fields inherited from class org.jfree.layouting.renderer.model.RenderNode |
---|
HORIZONTAL_AXIS, VERTICAL_AXIS |
Constructor Summary | |
---|---|
RenderBox(BoxDefinition boxDefinition)
|
Method Summary | |
---|---|
void |
addChild(RenderNode child)
|
void |
addChilds(RenderNode[] nodes)
|
void |
addGeneratedChild(RenderNode child)
|
void |
appyStyle(LayoutContext context,
OutputProcessorMetaData metaData)
|
void |
clear()
Removes all children. |
java.lang.Object |
clone()
Clones this node. |
void |
close()
|
RenderNode |
derive(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node. |
RenderNode |
deriveFrozen(boolean deepDerive)
Derive creates a disconnected node that shares all the properties of the original node. |
RenderNode |
findNodeById(java.lang.Object instanceId)
|
void |
freeze()
|
ExtendedBaselineInfo |
getBaselineInfo()
|
Border |
getBorder()
|
BoxDefinition |
getBoxDefinition()
|
BoxLayoutProperties |
getBoxLayoutProperties()
|
long |
getContentAreaX1()
|
long |
getContentAreaX2()
|
CSSValue |
getDominantBaseline()
|
long |
getEffectiveMarginBottom()
|
long |
getEffectiveMarginTop()
|
RenderNode |
getFirstChild()
|
RenderBox |
getInsertationPoint()
|
RenderNode |
getLastChild()
|
int |
getLineCount()
|
ExtendedBaselineInfo |
getNominalBaselineInfo()
|
int |
getOrphans()
|
long |
getOrphansSize()
|
PageContext |
getPageContext()
|
StaticBoxLayoutProperties |
getStaticBoxLayoutProperties()
|
RenderNode |
getVisibleFirst()
|
RenderNode |
getVisibleLast()
|
int |
getWidows()
|
long |
getWidowsSize()
|
RenderNode |
hibernate()
Derive creates a disconnected node that shares all the properties of the original node. |
protected void |
insertAfter(RenderNode node,
RenderNode target)
Inserts the given target after the specified node. |
protected void |
insertBefore(RenderNode node,
RenderNode target)
Inserts the given target directly before the the specified node. |
boolean |
isAppendable()
|
boolean |
isAvoidPagebreakInside()
|
boolean |
isDiscardable()
|
boolean |
isEmpty()
|
boolean |
isOpen()
|
boolean |
isPreserveSpace()
|
void |
remove(RenderNode child)
|
void |
replaceChild(RenderNode old,
RenderNode replacement)
|
void |
replaceChilds(RenderNode old,
RenderNode[] replacement)
|
void |
setBaselineInfo(ExtendedBaselineInfo baselineInfo)
|
void |
setContentAreaX1(long contentAreaX1)
|
void |
setContentAreaX2(long contentAreaX2)
|
protected void |
setFirstChild(RenderNode firstChild)
|
protected void |
setLastChild(RenderNode lastChild)
|
void |
setLineCount(int lineCount)
|
void |
setOrphansSize(long orphansSize)
|
void |
setPageContext(PageContext pageContext)
|
void |
setWidowsSize(long widowsSize)
|
RenderBox |
split(int axis)
Performs a simple split. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean LOG_PRUNE
Constructor Detail |
---|
public RenderBox(BoxDefinition boxDefinition)
Method Detail |
---|
public StaticBoxLayoutProperties getStaticBoxLayoutProperties()
public void appyStyle(LayoutContext context, OutputProcessorMetaData metaData)
appyStyle
in class RenderNode
public long getWidowsSize()
public void setWidowsSize(long widowsSize)
public long getOrphansSize()
public void setOrphansSize(long orphansSize)
public int getLineCount()
public void setLineCount(int lineCount)
public int getWidows()
public int getOrphans()
public boolean isAvoidPagebreakInside()
public ExtendedBaselineInfo getBaselineInfo()
public void setBaselineInfo(ExtendedBaselineInfo baselineInfo)
public ExtendedBaselineInfo getNominalBaselineInfo()
public CSSValue getDominantBaseline()
public boolean isPreserveSpace()
public BoxDefinition getBoxDefinition()
public RenderNode getFirstChild()
protected void setFirstChild(RenderNode firstChild)
public RenderNode getLastChild()
protected void setLastChild(RenderNode lastChild)
public void addGeneratedChild(RenderNode child)
public void addChild(RenderNode child)
protected void insertAfter(RenderNode node, RenderNode target)
node
- target
- protected void insertBefore(RenderNode node, RenderNode target)
node
- target
- public void replaceChild(RenderNode old, RenderNode replacement)
public void replaceChilds(RenderNode old, RenderNode[] replacement)
public java.lang.Object clone()
clone
in class RenderNode
public RenderNode derive(boolean deepDerive)
derive
in class RenderNode
public RenderNode hibernate()
hibernate
in class RenderNode
public RenderNode deriveFrozen(boolean deepDerive)
deriveFrozen
in class RenderNode
public void addChilds(RenderNode[] nodes)
public RenderNode findNodeById(java.lang.Object instanceId)
findNodeById
in class RenderNode
public boolean isAppendable()
public RenderBox getInsertationPoint()
public Border getBorder()
public void clear()
public RenderNode getVisibleFirst()
public RenderNode getVisibleLast()
public boolean isEmpty()
isEmpty
in class RenderNode
public boolean isDiscardable()
isDiscardable
in class RenderNode
public void close()
public void remove(RenderNode child)
public boolean isOpen()
isOpen
in class RenderNode
public PageContext getPageContext()
getPageContext
in class RenderNode
public void setPageContext(PageContext pageContext)
public void freeze()
freeze
in class RenderNode
public BoxLayoutProperties getBoxLayoutProperties()
public long getContentAreaX1()
public void setContentAreaX1(long contentAreaX1)
public long getContentAreaX2()
public void setContentAreaX2(long contentAreaX2)
public RenderBox split(int axis)
axis
-
public long getEffectiveMarginTop()
getEffectiveMarginTop
in class RenderNode
public long getEffectiveMarginBottom()
getEffectiveMarginBottom
in class RenderNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |