org.formaria.swing.layout
Class GuideLayoutEx

java.lang.Object
  extended by org.formaria.swing.layout.ScaleLayout
      extended by org.formaria.swing.layout.GuideLayout
          extended by org.formaria.swing.layout.GuideLayoutEx
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, LayoutSupport

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

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

Copyright (c) Formaria Ltd., 2008

$Revision: 1.4 $


Field Summary
 
Fields inherited from class org.formaria.swing.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 paintGuides(java.awt.Graphics g)
          Paint the guides
 void setGuideSupport(GuideSupport gs)
          Set the guide support (holder of guide coordinates etc...)
 
Methods inherited from class org.formaria.swing.layout.GuideLayout
addLayoutComponent, addLayoutComponent, getConstraints, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setPage
 
Methods inherited from class org.formaria.swing.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 org.formaria.aria.LayoutSupport
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

paintGuides

public void paintGuides(java.awt.Graphics g)
Paint the guides

Parameters:
g - the graphics context
clipRect - the clip rectangle