public abstract class OrderedLayout extends AbstractHintLayout
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_BOTTOMRIGHT
Constant to specify components to be aligned on the right/bottom
|
static int |
ALIGN_CENTER
Constant to specify components to be aligned in the center
|
static int |
ALIGN_TOPLEFT
Constant to specify components to be aligned on the left/top
|
protected boolean |
horizontal
Deprecated.
Use
setHorizontal(boolean) and
isHorizontal() instead. |
static boolean |
HORIZONTAL
Deprecated.
Pulled up from derived layout manager and deprecated here
because unused.
|
protected int |
minorAlignment
Deprecated.
Use
getMinorAlignment() and
setMinorAlignment(int) instead. |
protected Transposer |
transposer
Transposer object that may be used in layout calculations.
|
static boolean |
VERTICAL
Deprecated.
Pulled up from derived layout manager and deprecated here
because unused.
|
isObservingVisibility, preferredSize
Constructor and Description |
---|
OrderedLayout()
Constructs a new
OrderedLayout with the default orientation and a
minor alignment of ALIGN_TOPLEFT . |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getDefaultOrientation()
Returns the default orientation of this layout.
|
int |
getMinorAlignment()
Returns the minor alignment of the layout.
|
boolean |
isHorizontal()
Returns
true if the orientation of the layout is horizontal. |
abstract boolean |
isStretchMinorAxis()
Returns whether figures should obtain the same height/width in the minor
axis.
|
void |
setHorizontal(boolean flag)
Sets the orientation of the layout.
|
void |
setMinorAlignment(int align)
Sets the alignment of the children contained in the layout.
|
abstract void |
setStretchMinorAxis(boolean value)
Causes children that are smaller in the dimension of the minor axis to be
stretched to fill the minor axis.
|
calculateMinimumSize, getMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVertically
calculatePreferredSize, calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
layout
public static final int ALIGN_CENTER
public static final int ALIGN_TOPLEFT
public static final int ALIGN_BOTTOMRIGHT
public static final boolean HORIZONTAL
public static final boolean VERTICAL
protected boolean horizontal
protected int minorAlignment
protected Transposer transposer
public OrderedLayout()
OrderedLayout
with the default orientation and a
minor alignment of ALIGN_TOPLEFT
.protected abstract int getDefaultOrientation()
PositionConstants.HORIZONTAL
or
PositionConstants.VERTICAL
public int getMinorAlignment()
public boolean isHorizontal()
true
if the orientation of the layout is horizontal.true
if the orientation of the layout is horizontalpublic abstract boolean isStretchMinorAxis()
public void setHorizontal(boolean flag)
flag
- true
if this layout should be horizontal,
false
otherwise.public void setMinorAlignment(int align)
ALIGN_CENTER
, ALIGN_BOTTOMRIGHT
and
ALIGN_TOPLEFT
.align
- the minor alignmentpublic abstract void setStretchMinorAxis(boolean value)
value
- whether children should be stretched in the minor axis.Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.