|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.layout.ScaleLayout
net.xoetrope.optional.layout.GuideLayout
public class GuideLayout
A guide layout manager. Uses the guides setup in the KalIDEoscope to control the layout. Guides can be positioned absolutely in terms of pixels, relative to one another or relative to the container so that they scale as the page is resized.
Copyright (c) Xoetrope Ltd., 2002-2005
$Revision: 1.12 $
| Field Summary | |
|---|---|
protected java.util.Hashtable |
constraints
|
protected java.awt.Component |
page
|
| Constructor Summary | |
|---|---|
GuideLayout()
Creates a new instance of GuideLayout |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object objConstraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout,
associating it
with the string specified by name. |
protected Guide[] |
findGuides(java.lang.Object compConstraints)
Get the component constraints. |
java.lang.Object |
getConstraints(java.lang.Object comp)
Get the layout constraints |
float |
getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis. |
void |
invalidateLayout(java.awt.Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Calculates the maximum size dimensions for the specified container, given the components it contains. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
void |
setPage(java.awt.Component comp)
Set the root or page for the layout. |
| 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 |
| Field Detail |
|---|
protected java.util.Hashtable constraints
protected java.awt.Component page
| Constructor Detail |
|---|
public GuideLayout()
| Method Detail |
|---|
public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerlayoutContainer in class ScaleLayoutparent - the container to be laid outprotected Guide[] findGuides(java.lang.Object compConstraints)
compConstraints - the constraints specification or reference
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object objConstraints)
addLayoutComponent in interface java.awt.LayoutManager2comp - the component to be addedobjConstraints - where/how the component is added to the layout.public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpreferredLayoutSize in class ScaleLayoutparent - the container to be laid out
minimumLayoutSize(java.awt.Container)public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerminimumLayoutSize in class ScaleLayoutparent - the component to be laid out
preferredLayoutSize(java.awt.Container)public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2target -
Component.getMaximumSize(),
LayoutManagerpublic float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2target - the container to lay outpublic float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2target - the container to lay outpublic void invalidateLayout(java.awt.Container target)
invalidateLayout in interface java.awt.LayoutManager2target - the container to lay out
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
comp to the layout,
associating it
with the string specified by name.
addLayoutComponent in interface java.awt.LayoutManageraddLayoutComponent in class ScaleLayoutname - the string to be associated with the componentcomp - the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerremoveLayoutComponent in class ScaleLayoutcomp - the component to be removedpublic java.lang.Object getConstraints(java.lang.Object comp)
getConstraints in interface XLayoutSupportcomp - the component for which the constraints are being retrieved
public void setPage(java.awt.Component comp)
comp - the root component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||