Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the baseline or < 0 indicating there is no reasonable baselineComponent baseline is being requested forthe width to get the baseline for width, int the height to get the baseline for height)Returns the baseline. |
| public Component. | Returns: an enum indicating how the baseline changes as the border is resizedComponent to return baseline resize behavior forReturns an enum indicating how the baseline of a component changes as the size changes. |
| public Insets | Returns: a newInsets objectthe component for which this border insets value applies c)Implements javax. This default implementation returns a new |
| public Insets | Returns: theinsets objectthe component for which this border insets value applies c, Insets the object to be reinitialized insets)Reinitializes the insets parameter with this Border's current Insets. |
| public Rectangle | Returns: aRectangle containing the interior coordinatesthe component for which this border is being computed c, int the x position of the border x, int the y position of the border y, int the width of the border width, int the height of the border height)This convenience method calls the static method. |
| public static Rectangle | Returns: aRectangle containing the interior coordinatesthe component for which this border is being computed c, Border the b, int Border objectthe x position of the border x, int the y position of the border y, int the width of the border width, int the height of the border height)Returns a rectangle using the arguments minus the insets of the border. |
| public boolean | Returns: falseImplements javax. This default implementation returns false. |
| pack-priv static boolean | |
| public void | paintBorder(Component
the component for which this border is being painted c, Graphics the paint graphics g, int the x position of the painted border x, int the y position of the painted border y, int the width of the painted border width, int the height of the painted border height)Implements javax. This default implementation does no painting. |
| AbstractBorder | back to summary |
|---|---|
| protected AbstractBorder() Constructor for subclasses to call. | |
| getBaseline | back to summary |
|---|---|
| public int getBaseline(Component c, int width, int height) Returns the baseline. A return value less than 0 indicates the border does not have a reasonable baseline.
The default implementation returns -1. Subclasses that support
baseline should override appropriately. If a value >= 0 is
returned, then the component has a valid baseline for any
size >= the minimum size and
| |
| getBaselineResizeBehavior | back to summary |
|---|---|
| public Component. Returns an enum indicating how the baseline of a component changes as the size changes. This method is primarily meant for layout managers and GUI builders.
The default implementation returns
| |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c) Implements javax. This default implementation returns a new | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Reinitializes the insets parameter with this Border's current Insets.
| |
| getInteriorRectangle | back to summary |
|---|---|
| public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height) This convenience method calls the static method. | |
| getInteriorRectangle | back to summary |
|---|---|
| public static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height) Returns a rectangle using the arguments minus the insets of the border. This is useful for determining the area that components should draw in that will not intersect the border.
| |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Implements javax. This default implementation returns false.
| |
| isLeftToRight | back to summary |
|---|---|
| pack-priv static boolean isLeftToRight(Component c) | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Implements javax. This default implementation does no painting. | |