| java.lang.Object nextapp.echo2.app.Insets
Insets | public class Insets implements Serializable(Code) | | A property which describes an "inset" within a rectangular
region. This property is commonly used to specify margins of a
Component relative to its container.
Null values for top/left/right/bottom margins indicate a 0-pixel inset
for that margin.
|
Constructor Summary | |
public | Insets(int leftPx, int topPx, int rightPx, int bottomPx) Creates a new Insets object with the given pixel margin sizes. | public | Insets(Extent left, Extent top, Extent right, Extent bottom) Creates a new Insets object with the given margin sizes. | public | Insets(int sizePx) Creates a new Insets object, defining all margins to be the provided
value. | public | Insets(Extent size) Creates a new Insets object, defining all margins to be the provided
value. | public | Insets(int horizontal, int vertical) Creates a new Insets object by defining values for the horizontal and
vertical margins. | public | Insets(Extent horizontal, Extent vertical) Creates a new Insets object by defining values for the horizontal and
vertical margins. |
Insets | public Insets(int leftPx, int topPx, int rightPx, int bottomPx)(Code) | | Creates a new Insets object with the given pixel margin sizes.
Parameters: leftPx - the size of the left margin in pixels Parameters: topPx - the size of the top margin in pixels Parameters: rightPx - the size of the right margin in pixels Parameters: bottomPx - the size of the bottom margin in pixels |
Insets | public Insets(Extent left, Extent top, Extent right, Extent bottom)(Code) | | Creates a new Insets object with the given margin sizes.
Insets only supports Extent s with
fixed (i.e., not percent) units.
Parameters: left - the size of the left margin Parameters: top - the size of the top margin Parameters: right - the size of the right margin Parameters: bottom - the size of the bottom margin |
Insets | public Insets(int sizePx)(Code) | | Creates a new Insets object, defining all margins to be the provided
value.
Parameters: sizePx - the margin size in pixels |
Insets | public Insets(Extent size)(Code) | | Creates a new Insets object, defining all margins to be the provided
value.
Insets only supports Extent s with
fixed (i.e., not percent) units.
Parameters: size - the margin size |
Insets | public Insets(int horizontal, int vertical)(Code) | | Creates a new Insets object by defining values for the horizontal and
vertical margins.
Parameters: horizontal - the size of the horizontal (left and right) margins in pixels Parameters: vertical - the size of the vertical (top and bottom) margins in pixels |
Insets | public Insets(Extent horizontal, Extent vertical)(Code) | | Creates a new Insets object by defining values for the horizontal and
vertical margins.
Parameters: horizontal - the size of the horizontal (left and right) margins Parameters: vertical - the size of the vertical (top and bottom) margins |
getBottom | public Extent getBottom()(Code) | | Returns the size of the bottom margin.
Insets only supports Extent s with
fixed (i.e., not percent) units.
the size of the bottom margin |
getLeft | public Extent getLeft()(Code) | | Returns the size of the left margin.
Insets only supports Extent s with
fixed (i.e., not percent) units.
the size of the left margin |
getRight | public Extent getRight()(Code) | | Returns the size of the right margin.
Insets only supports Extent s with
fixed (i.e., not percent) units.
the size of the right margin |
getTop | public Extent getTop()(Code) | | Returns the size of the top margin.
Insets only supports Extent s with
fixed (i.e., not percent) units.
the size of the top margin |
|
|