org.jfree.layouting.renderer.model

Class DefaultBoxDefinition

public class DefaultBoxDefinition extends Object implements BoxDefinition

Describes the margins, paddings, borders and sizes of a box. (This does not define or describe the *actual* value used for the rendering, it describes the stylesheet's computed values.)

Author: Thomas Morgner

Constructor Summary
DefaultBoxDefinition()
Method Summary
CSSColorValuegetBackgroundColor()
BordergetBorder()
RenderLengthgetMarginBottom()
RenderLengthgetMarginLeft()
RenderLengthgetMarginRight()
RenderLengthgetMarginTop()
RenderLengthgetMaximumHeight()
RenderLengthgetMaximumWidth()
RenderLengthgetMinimumHeight()
RenderLengthgetMinimumWidth()
RenderLengthgetPaddingBottom()
RenderLengthgetPaddingLeft()
RenderLengthgetPaddingRight()
RenderLengthgetPaddingTop()
RenderLengthgetPreferredHeight()
RenderLengthgetPreferredWidth()
booleanisEmpty()
voidsetBackgroundColor(CSSColorValue backgroundColor)
voidsetBorder(Border border)
voidsetMarginBottom(RenderLength marginBottom)
voidsetMarginLeft(RenderLength marginLeft)
voidsetMarginRight(RenderLength marginRight)
voidsetMarginTop(RenderLength marginTop)
voidsetMaximumHeight(RenderLength maximumHeight)
voidsetMaximumWidth(RenderLength maximumWidth)
voidsetMinimumHeight(RenderLength minimumHeight)
voidsetMinimumWidth(RenderLength minimumWidth)
voidsetPaddingBottom(RenderLength paddingBottom)
voidsetPaddingLeft(RenderLength paddingLeft)
voidsetPaddingRight(RenderLength paddingRight)
voidsetPaddingTop(RenderLength paddingTop)
voidsetPreferredHeight(RenderLength preferredHeight)
voidsetPreferredWidth(RenderLength preferredWidth)
BoxDefinition[]split(int axis)
Split the box definition for the given major axis.
BoxDefinition[]splitHorizontally()
BoxDefinition[]splitVertically()

Constructor Detail

DefaultBoxDefinition

public DefaultBoxDefinition()

Method Detail

getBackgroundColor

public CSSColorValue getBackgroundColor()

getBorder

public Border getBorder()

getMarginBottom

public RenderLength getMarginBottom()

getMarginLeft

public RenderLength getMarginLeft()

getMarginRight

public RenderLength getMarginRight()

getMarginTop

public RenderLength getMarginTop()

getMaximumHeight

public RenderLength getMaximumHeight()

getMaximumWidth

public RenderLength getMaximumWidth()

getMinimumHeight

public RenderLength getMinimumHeight()

getMinimumWidth

public RenderLength getMinimumWidth()

getPaddingBottom

public RenderLength getPaddingBottom()

getPaddingLeft

public RenderLength getPaddingLeft()

getPaddingRight

public RenderLength getPaddingRight()

getPaddingTop

public RenderLength getPaddingTop()

getPreferredHeight

public RenderLength getPreferredHeight()

getPreferredWidth

public RenderLength getPreferredWidth()

isEmpty

public boolean isEmpty()

setBackgroundColor

public void setBackgroundColor(CSSColorValue backgroundColor)

setBorder

public void setBorder(Border border)

setMarginBottom

public void setMarginBottom(RenderLength marginBottom)

setMarginLeft

public void setMarginLeft(RenderLength marginLeft)

setMarginRight

public void setMarginRight(RenderLength marginRight)

setMarginTop

public void setMarginTop(RenderLength marginTop)

setMaximumHeight

public void setMaximumHeight(RenderLength maximumHeight)

setMaximumWidth

public void setMaximumWidth(RenderLength maximumWidth)

setMinimumHeight

public void setMinimumHeight(RenderLength minimumHeight)

setMinimumWidth

public void setMinimumWidth(RenderLength minimumWidth)

setPaddingBottom

public void setPaddingBottom(RenderLength paddingBottom)

setPaddingLeft

public void setPaddingLeft(RenderLength paddingLeft)

setPaddingRight

public void setPaddingRight(RenderLength paddingRight)

setPaddingTop

public void setPaddingTop(RenderLength paddingTop)

setPreferredHeight

public void setPreferredHeight(RenderLength preferredHeight)

setPreferredWidth

public void setPreferredWidth(RenderLength preferredWidth)

split

public BoxDefinition[] split(int axis)
Split the box definition for the given major axis. A horizontal axis will perform vertical splits (resulting in a left and right box definition) and a given vertical axis will split the box into a top and bottom box.

Parameters: axis

Returns:

splitHorizontally

public BoxDefinition[] splitHorizontally()

splitVertically

public BoxDefinition[] splitVertically()