|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.utils.HWMPageLayout
public class HWMPageLayout
Title: HWMPageLayout
Description: This is the layout manager to which will place the components according to the HWMPageConstraints. The component can be fixed or relative to the page.
NOTE: THIS CAN BE USED ONLY FOR SWING CONTAINERS
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static int |
GRID_SIZE
The grid size to use |
Constructor Summary | |
---|---|
HWMPageLayout()
Constructor |
Method Summary | |
---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object objConstraints)
LayoutManager2 method which is called when a component is added to the parent. |
void |
addLayoutComponent(java.lang.String strName,
java.awt.Component comp)
LayoutManager method Adds the specified component with the specified name to the layout. |
HWMPageConstraints[] |
GetAllConstraints()
Returns array of constraints |
HWMPageConstraints |
GetConstraints(java.awt.Component comp)
Gets the constraints for the component |
float |
getLayoutAlignmentX(java.awt.Container containerTarget)
LayoutManager2 method Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(java.awt.Container containerTarget)
LayoutManager2 method Returns the alignment along the y axis. |
void |
invalidateLayout(java.awt.Container containerTarget)
LayoutManager2 method Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
layoutContainer(java.awt.Container containerTarget)
LayoutManager method Lays out the specified container using this layout. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container containerTarget)
LayoutManager2 method Returns the maximum dimensions for this layout given the components in the specified containerTarget container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container containerTarget)
LayoutManager method Determines the minimum size of the container using this layout |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container containerTarget)
LayoutManager method Determines the preferred size of the container using this layout |
void |
removeLayoutComponent(java.awt.Component comp)
LayoutManager method Removes the specified component from this layout. |
void |
SetConstraints(java.awt.Component comp,
HWMPageConstraints hwmPageConstraints)
Sets the constraints for the component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int GRID_SIZE
Constructor Detail |
---|
public HWMPageLayout()
Method Detail |
---|
public void addLayoutComponent(java.awt.Component comp, java.lang.Object objConstraints) throws java.lang.IllegalArgumentException
addLayoutComponent
in interface java.awt.LayoutManager2
comp
- The component that is to be added to the containerobjConstraints
- The constraints that need to be followed to place
the component in the container which will be the
HWMPageConstraints object.
java.lang.IllegalArgumentException
public void SetConstraints(java.awt.Component comp, HWMPageConstraints hwmPageConstraints)
comp
- The component whose constrainst should be sethwmPageConstraints
- The constraints to follow while laying out the
componentpublic HWMPageConstraints GetConstraints(java.awt.Component comp)
comp
- The component whose constrainst should be set
public HWMPageConstraints[] GetAllConstraints()
public java.awt.Dimension maximumLayoutSize(java.awt.Container containerTarget)
maximumLayoutSize
in interface java.awt.LayoutManager2
containerTarget
- the component which needs to be laid outpublic float getLayoutAlignmentX(java.awt.Container containerTarget)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
containerTarget
- the component which needs to be laid outpublic float getLayoutAlignmentY(java.awt.Container containerTarget)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
containerTarget
- the component which needs to be laid outpublic void invalidateLayout(java.awt.Container containerTarget)
invalidateLayout
in interface java.awt.LayoutManager2
public void addLayoutComponent(java.lang.String strName, java.awt.Component comp) throws java.lang.UnsupportedOperationException
addLayoutComponent
in interface java.awt.LayoutManager
strName
- the name of the component.comp
- the component to be added.
java.lang.UnsupportedOperationException
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component to be removed.public java.awt.Dimension preferredLayoutSize(java.awt.Container containerTarget)
preferredLayoutSize
in interface java.awt.LayoutManager
containerTarget
- the container in which to do the layout.public java.awt.Dimension minimumLayoutSize(java.awt.Container containerTarget)
minimumLayoutSize
in interface java.awt.LayoutManager
containerTarget
- the container in which to do the layout.public void layoutContainer(java.awt.Container containerTarget)
layoutContainer
in interface java.awt.LayoutManager
containerTarget
- the container in which to do the layout.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |