de.kleopatra.forms.description.jgoodies
Class JGoodiesLayoutTranslator

java.lang.Object
  extended byde.kleopatra.forms.description.jgoodies.JGoodiesLayoutTranslator
All Implemented Interfaces:
LayoutTranslator

public final class JGoodiesLayoutTranslator
extends java.lang.Object
implements LayoutTranslator

JGoodies Forms specific implementation of LayoutTranslator.

Version:
$Revision: 1.2 $ $Date: 2004/09/30 10:18:21 $
Author:
(C) 2003 Jeanette Winzenburg, Berlin

Constructor Summary
JGoodiesLayoutTranslator()
           
 
Method Summary
 javax.swing.border.Border createBorder(LayoutBorder border)
           
 Column createColumn(java.lang.Object columnSpec)
           
 java.util.List createColumns(java.awt.LayoutManager layoutManager)
          return a list of Column descriptions from the manager's columns.
 Constraint createConstraint(java.awt.LayoutManager layoutManager, java.awt.Component comp)
          returns a Constraint for the given Component.
 Constraint createConstraint(java.lang.Object constraintSpec)
           
 java.lang.Object createConstraintSpec(Constraint constraint)
          returns a constraint object that's understood by the created layoutManager.
protected  Column createJGoodiesColumn(ColumnSpec spec)
           
protected  Constraint createJGoodiesConstraint(CellConstraints constraints)
           
protected  Row createJGoodiesRow(RowSpec spec)
           
 LayoutDebugPainter createLayoutDebugPainter()
          returns a painter that can visualize layoutInfo.
 java.awt.LayoutManager createLayoutManager(java.util.List rows, java.util.List columns)
          returns a layoutManager with the rows, columns.
protected  java.util.List createList()
           
 Row createRow(java.lang.Object rowSpec)
           
 java.util.List createRows(java.awt.LayoutManager layoutManager)
          returns a list of Row descriptions from the manager's rows.
 boolean isCompatible(java.awt.LayoutManager layoutManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGoodiesLayoutTranslator

public JGoodiesLayoutTranslator()
Method Detail

createConstraintSpec

public java.lang.Object createConstraintSpec(Constraint constraint)
returns a constraint object that's understood by the created layoutManager.

Specified by:
createConstraintSpec in interface LayoutTranslator

createLayoutManager

public java.awt.LayoutManager createLayoutManager(java.util.List rows,
                                                  java.util.List columns)
Description copied from interface: LayoutTranslator
returns a layoutManager with the rows, columns. rows/columns are lists of Row/Column objects

Specified by:
createLayoutManager in interface LayoutTranslator

createLayoutDebugPainter

public LayoutDebugPainter createLayoutDebugPainter()
Description copied from interface: LayoutTranslator
returns a painter that can visualize layoutInfo.

Specified by:
createLayoutDebugPainter in interface LayoutTranslator

createBorder

public javax.swing.border.Border createBorder(LayoutBorder border)
Specified by:
createBorder in interface LayoutTranslator

isCompatible

public boolean isCompatible(java.awt.LayoutManager layoutManager)
Specified by:
isCompatible in interface LayoutTranslator

createConstraint

public Constraint createConstraint(java.lang.Object constraintSpec)
Specified by:
createConstraint in interface LayoutTranslator

createRow

public Row createRow(java.lang.Object rowSpec)
Specified by:
createRow in interface LayoutTranslator

createColumn

public Column createColumn(java.lang.Object columnSpec)
Specified by:
createColumn in interface LayoutTranslator

createConstraint

public Constraint createConstraint(java.awt.LayoutManager layoutManager,
                                   java.awt.Component comp)
Description copied from interface: LayoutTranslator
returns a Constraint for the given Component.

Specified by:
createConstraint in interface LayoutTranslator

createRows

public java.util.List createRows(java.awt.LayoutManager layoutManager)
Description copied from interface: LayoutTranslator
returns a list of Row descriptions from the manager's rows.

Specified by:
createRows in interface LayoutTranslator

createColumns

public java.util.List createColumns(java.awt.LayoutManager layoutManager)
Description copied from interface: LayoutTranslator
return a list of Column descriptions from the manager's columns.

Specified by:
createColumns in interface LayoutTranslator

createJGoodiesRow

protected Row createJGoodiesRow(RowSpec spec)

createJGoodiesColumn

protected Column createJGoodiesColumn(ColumnSpec spec)

createJGoodiesConstraint

protected Constraint createJGoodiesConstraint(CellConstraints constraints)

createList

protected java.util.List createList()


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.