|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.swing.ext.layout.JVxSequenceLayout
public class JVxSequenceLayout
The JVxSequenceLayout can be used as FlowLayout with
additional features. The additional features are:
| Field Summary |
|---|
| Fields inherited from interface com.sibvisions.rad.ui.swing.ext.JVxConstants |
|---|
STRETCH |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
JVxSequenceLayout()
Creates a new instance of JVxSequenceLayout with SwingConstants.HORIZONTAL
orientation and 5 pixels vertical and horizontal gap. |
|
JVxSequenceLayout(int pOrientation)
Creates a new instance of JVxSequenceLayout with the desired orientation
and 5 pixels vertical and horizontal gap. |
|
JVxSequenceLayout(int pOrientation,
int pHorizontalGap,
int pVerticalGap)
Creates a new instance of JVxSequenceLayout with the desired orientation
and gaps. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
int |
getHorizontalAlignment()
Returns the alignment for the x axis. |
int |
getHorizontalComponentAlignment()
Gets the component alignment for the x axis. |
int |
getHorizontalGap()
Gets the horizontal gap between components. |
java.awt.Insets |
getMargins()
Gets the layout margins. |
int |
getOrientation()
Gets the component orientation. |
int |
getVerticalAlignment()
Gets the alignment for the y axis. |
int |
getVerticalComponentAlignment()
Gets the component alignment for the x axis. |
int |
getVerticalGap()
Gets the vertical gap between components. |
boolean |
isAutoWrap()
Gets the current state of the automatic wrap mode. |
void |
layoutContainer(java.awt.Container pContainer)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Gets the minimum layout size. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container pContainer)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
setAutoWrap(boolean pAutoWrap)
Sets the automatic wrap mode. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the alignment for the x axis. |
void |
setHorizontalComponentAlignment(int pHorizontalComponentAlignment)
Sets the component alignment for the x axis. |
void |
setHorizontalGap(int pGap)
Sets horizontal gap between components. |
void |
setMargins(java.awt.Insets pMargins)
Sets the layout margins. |
void |
setOrientation(int pOrientation)
Sets the orientation of the components in the "layout". |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the alignment for the y axis. |
void |
setVerticalComponentAlignment(int pVerticalComponentAlignment)
Sets the component alignement for the y axis. |
void |
setVerticalGap(int pGap)
Sets the vertical gap between components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JVxSequenceLayout()
JVxSequenceLayout with SwingConstants.HORIZONTAL
orientation and 5 pixels vertical and horizontal gap.
public JVxSequenceLayout(int pOrientation)
JVxSequenceLayout with the desired orientation
and 5 pixels vertical and horizontal gap.
pOrientation - the desired orientation
public JVxSequenceLayout(int pOrientation,
int pHorizontalGap,
int pVerticalGap)
JVxSequenceLayout with the desired orientation
and gaps.
pOrientation - the desired orientationpHorizontalGap - the horizontal gappVerticalGap - the vertical gap| Method Detail |
|---|
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container pContainer)
preferredLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize in interface java.awt.LayoutManagertarget - the container
public void layoutContainer(java.awt.Container pContainer)
layoutContainer in interface java.awt.LayoutManagerpublic void setOrientation(int pOrientation)
pOrientation - the orientation SwingConstants.HORIZONTAL or
SwingConstants.VERTICALpublic int getOrientation()
SwingConstants.HORIZONTAL or SwingConstants.VERTICALpublic void setHorizontalGap(int pGap)
pGap - the gap in pixelpublic int getHorizontalGap()
public void setVerticalGap(int pGap)
pGap - the gap in pixelpublic int getVerticalGap()
public void setAutoWrap(boolean pAutoWrap)
FlowLayout.
pAutoWrap - true to enabled the auto wrap mode; false otherwisepublic boolean isAutoWrap()
true if the automatic wrap mode is enabled; otherwise falsepublic void setHorizontalAlignment(int pHorizontalAlignment)
pHorizontalAlignment - the alignment SwingConstants.LEFT, SwingConstants.CENTER,
SwingConstants.RIGHT or JVxConstants.STRETCHpublic int getHorizontalAlignment()
SwingConstants.LEFT, SwingConstants.CENTER,
SwingConstants.RIGHT or JVxConstants.STRETCHpublic void setVerticalAlignment(int pVerticalAlignment)
pVerticalAlignment - the alignment SwingConstants.TOP, SwingConstants.CENTER,
SwingConstants.BOTTOM or JVxConstants.STRETCHpublic int getVerticalAlignment()
SwingConstants.TOP, SwingConstants.CENTER,
SwingConstants.BOTTOM or JVxConstants.STRETCHpublic void setHorizontalComponentAlignment(int pHorizontalComponentAlignment)
SwingConstants.VERTICAL.
pHorizontalComponentAlignment - the alignment SwingConstants.LEFT, SwingConstants.CENTER,
SwingConstants.RIGHT or JVxConstants.STRETCHpublic int getHorizontalComponentAlignment()
SwingConstants.LEFT, SwingConstants.CENTER,
SwingConstants.RIGHT or JVxConstants.STRETCHsetHorizontalComponentAlignment(int)public void setVerticalComponentAlignment(int pVerticalComponentAlignment)
SwingConstants.HORIZONTAL.
pVerticalComponentAlignment - the alignment SwingConstants.TOP, SwingConstants.CENTER,
SwingConstants.BOTTOM or JVxConstants.STRETCHpublic int getVerticalComponentAlignment()
SwingConstants.TOP, SwingConstants.CENTER,
SwingConstants.BOTTOM or JVxConstants.STRETCHsetVerticalComponentAlignment(int)public void setMargins(java.awt.Insets pMargins)
pMargins - the marginspublic java.awt.Insets getMargins()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||