JHotDraw 6.0b1

org.jhotdraw.contrib.html
Class HTMLLayouter

java.lang.Object
  extended by org.jhotdraw.contrib.html.HTMLLayouter
All Implemented Interfaces:
java.io.Serializable, Layouter, Storable

public class HTMLLayouter
extends java.lang.Object
implements Layouter

HTMLLayouter implements the logic for laying out figures based on an HTML template.

See Also:
Serialized Form

Constructor Summary
HTMLLayouter()
          Constructor for the HTMLLayouter object
HTMLLayouter(Layoutable newLayoutable)
          Constructor which associates a HTMLLayouter with a certain Layoutable.
 
Method Summary
 java.awt.Rectangle calculateLayout(java.awt.Point origin, java.awt.Point corner)
          Description of the Method
 Layouter create(Layoutable newLayoutable)
          Create a new instance of this type and sets the layoutable
 java.awt.Insets getInsets()
          Gets the insets attribute of the HTMLLayouter object
 java.awt.Rectangle layout(java.awt.Point origin, java.awt.Point corner)
          Description of the Method
 void read(StorableInput dr)
          Description of the Method
 void setInsets(java.awt.Insets newInsets)
          Sets the insets attribute of the HTMLLayouter object
 void write(StorableOutput dw)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLLayouter

public HTMLLayouter()
Constructor for the HTMLLayouter object


HTMLLayouter

public HTMLLayouter(Layoutable newLayoutable)
Constructor which associates a HTMLLayouter with a certain Layoutable.

Parameters:
newLayoutable - Layoutable to be laid out
Method Detail

calculateLayout

public java.awt.Rectangle calculateLayout(java.awt.Point origin,
                                          java.awt.Point corner)
Description of the Method

Specified by:
calculateLayout in interface Layouter
Parameters:
origin - Description of the Parameter
corner - Description of the Parameter
Returns:
Description of the Return Value

layout

public java.awt.Rectangle layout(java.awt.Point origin,
                                 java.awt.Point corner)
Description of the Method

Specified by:
layout in interface Layouter
Parameters:
origin - Description of the Parameter
corner - Description of the Parameter
Returns:
Description of the Return Value

setInsets

public void setInsets(java.awt.Insets newInsets)
Sets the insets attribute of the HTMLLayouter object

Specified by:
setInsets in interface Layouter
Parameters:
newInsets - The new insets value

getInsets

public java.awt.Insets getInsets()
Gets the insets attribute of the HTMLLayouter object

Specified by:
getInsets in interface Layouter
Returns:
The insets value

write

public void write(StorableOutput dw)
Description of the Method

Specified by:
write in interface Storable
Parameters:
dw - Description of the Parameter

read

public void read(StorableInput dr)
          throws java.io.IOException
Description of the Method

Specified by:
read in interface Storable
Parameters:
dr - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

create

public Layouter create(Layoutable newLayoutable)
Create a new instance of this type and sets the layoutable

Specified by:
create in interface Layouter
Parameters:
newLayoutable - Description of the Parameter
Returns:
Description of the Return Value

JHotDraw 6.0b1