net.xoetrope.optional.layout
Class GuideLayoutEx

java.lang.Object
  extended by net.xoetrope.optional.layout.ScaleLayout
      extended by net.xoetrope.optional.layout.GuideLayout
          extended by net.xoetrope.optional.layout.GuideLayoutEx
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, XLayoutSupport

public class GuideLayoutEx
extends GuideLayout
implements java.awt.LayoutManager2, XLayoutSupport

An extension of the guide layout to support text and xml based constraints.

Copyright (c) Xoetrope Ltd., 2002-2005

$Revision: 1.4 $


Field Summary
 
Fields inherited from class net.xoetrope.optional.layout.GuideLayout
constraints, page
 
Constructor Summary
GuideLayoutEx()
          Creates a new instance of GuideLayout
 
Method Summary
protected  Guide[] findGuides(java.lang.Object compConstraints)
          Get the component constraints.
 void layoutContainer(java.awt.Container parent)
          Lays out the specified container.
 void setGuideSupport(GuideSupport gs)
          Set the guide support (holder of guide coordinates etc...)
 
Methods inherited from class net.xoetrope.optional.layout.GuideLayout
addLayoutComponent, addLayoutComponent, getConstraints, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setPage
 
Methods inherited from class net.xoetrope.optional.layout.ScaleLayout
getScaleAll, getScaleFonts, iterateComps, scaleComponent, setScaleAll, setScaleFonts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.LayoutManager2
addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize
 
Methods inherited from interface java.awt.LayoutManager
addLayoutComponent, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
 
Methods inherited from interface net.xoetrope.xui.XLayoutSupport
getConstraints
 

Constructor Detail

GuideLayoutEx

public GuideLayoutEx()
Creates a new instance of GuideLayout

Method Detail

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the specified container.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class GuideLayout
Parameters:
parent - the container to be laid out

findGuides

protected Guide[] findGuides(java.lang.Object compConstraints)
Get the component constraints. In this case the reference is assumed to be an string naming the individual guides.

Overrides:
findGuides in class GuideLayout
Parameters:
compConstraints - the constraints specification or reference
Returns:
an array of component constraints, one for each of the four edges

setGuideSupport

public void setGuideSupport(GuideSupport gs)
Set the guide support (holder of guide coordinates etc...)

Parameters:
gs - the guide support object