org.writersforge.catalan.layout
Class LayoutShape

java.lang.Object
  |
  +--org.writersforge.catalan.layout.LayoutArea
        |
        +--org.writersforge.catalan.layout.LayoutShape

public class LayoutShape
extends LayoutArea

Non-textual drawing element. The shape area can be created explicitly by the template, or implicitly in response to, for example, a border property on a LayoutGroup area.

Author:
jsheets

Constructor Summary
LayoutShape(AreaStyle style)
          Creates a new instance of LayoutShape.
 
Method Summary
static LayoutShape createBorder(int borderWidth, java.awt.Color borderColor)
          Creates a border shape area.
 
Methods inherited from class org.writersforge.catalan.layout.LayoutArea
addChildren, addChildren, canBreakAt, getChildren, getChildren, getExtents, getHeight, getHint, getRenderableExtents, getStyle, getWidth, getX, getY, isBreakable, isRenderable, setChildren, setChildren, setExtents, setHeight, setHint, setWidth, setX, setY, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutShape

public LayoutShape(AreaStyle style)
Creates a new instance of LayoutShape.

Parameters:
style - the style constraints for the area
Method Detail

createBorder

public static LayoutShape createBorder(int borderWidth,
                                       java.awt.Color borderColor)
Creates a border shape area.

Parameters:
borderWidth - the width of the border line, in points
borderColor - the color of the border line
Returns:
a newly created border area