org.formaria.swing.layout
Class GuideLayoutEx
java.lang.Object
org.formaria.swing.layout.ScaleLayout
org.formaria.swing.layout.GuideLayout
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 $
|
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 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 |
GuideLayoutEx
public GuideLayoutEx()
- Creates a new instance of GuideLayout
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 contextclipRect - the clip rectangle