|
||||||||||
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(String name,
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. |
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(Container pContainer)
|
Dimension |
minimumLayoutSize(Container target)
Gets the minimum layout size. |
Dimension |
preferredLayoutSize(Container pContainer)
|
void |
removeLayoutComponent(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(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 orientationpublic JVxSequenceLayout(int pOrientation, int pHorizontalGap, int pVerticalGap)
JVxSequenceLayout
with the desired orientation
and gaps.
pOrientation
- the desired orientationpHorizontalGap
- the horizontal gappVerticalGap
- the vertical gapMethod Detail |
---|
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
public Dimension preferredLayoutSize(Container pContainer)
preferredLayoutSize
in interface LayoutManager
public Dimension minimumLayoutSize(Container target)
minimumLayoutSize
in interface LayoutManager
target
- the container
public void layoutContainer(Container pContainer)
layoutContainer
in interface LayoutManager
public void setOrientation(int pOrientation)
pOrientation
- the orientation SwingConstants.HORIZONTAL
or
SwingConstants.VERTICAL
public int getOrientation()
SwingConstants.HORIZONTAL
or SwingConstants.VERTICAL
public 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 false
public void setHorizontalAlignment(int pHorizontalAlignment)
pHorizontalAlignment
- the alignment SwingConstants.LEFT
, SwingConstants.CENTER
,
SwingConstants.RIGHT
or JVxConstants.STRETCH
public int getHorizontalAlignment()
SwingConstants.LEFT
, SwingConstants.CENTER
,
SwingConstants.RIGHT
or JVxConstants.STRETCH
public void setVerticalAlignment(int pVerticalAlignment)
pVerticalAlignment
- the alignment SwingConstants.TOP
, SwingConstants.CENTER
,
SwingConstants.BOTTOM
or JVxConstants.STRETCH
public int getVerticalAlignment()
SwingConstants.TOP
, SwingConstants.CENTER
,
SwingConstants.BOTTOM
or JVxConstants.STRETCH
public void setHorizontalComponentAlignment(int pHorizontalComponentAlignment)
SwingConstants.VERTICAL
.
pHorizontalComponentAlignment
- the alignment SwingConstants.LEFT
, SwingConstants.CENTER
,
SwingConstants.RIGHT
or JVxConstants.STRETCH
public int getHorizontalComponentAlignment()
SwingConstants.LEFT
, SwingConstants.CENTER
,
SwingConstants.RIGHT
or JVxConstants.STRETCH
setHorizontalComponentAlignment(int)
public void setVerticalComponentAlignment(int pVerticalComponentAlignment)
SwingConstants.HORIZONTAL
.
pVerticalComponentAlignment
- the alignment SwingConstants.TOP
, SwingConstants.CENTER
,
SwingConstants.BOTTOM
or JVxConstants.STRETCH
public int getVerticalComponentAlignment()
SwingConstants.TOP
, SwingConstants.CENTER
,
SwingConstants.BOTTOM
or JVxConstants.STRETCH
setVerticalComponentAlignment(int)
public void setMargins(Insets pMargins)
pMargins
- the marginspublic Insets getMargins()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |