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.
.
Modifier and Type | Field and Description |
---|---|
private final Paint | |
private final BasicStroke |
Access | Constructor and Description |
---|---|
public | StrokeBorder(BasicStroke
the stroke)BasicStroke object used to stroke a shapeCreates a border of the specified |
public | StrokeBorder(BasicStroke
the stroke, Paint BasicStroke object used to stroke a shapethe paint)Paint object used to generate a colorCreates a border of the specified |
Modifier and Type | Method and Description |
---|---|
public Insets | Returns: the reinitializedinsets parameterthe component for which this border insets value applies c, Insets the insets)Insets object to be reinitializedOverrides javax. Reinitializes the |
public Paint | |
public BasicStroke | Returns: theBasicStroke objectReturns the |
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)Overrides javax. Implements javax. Paints the border for the specified component with the specified position and size. |
paint | back to summary |
---|---|
private final Paint paint |
stroke | back to summary |
---|---|
private final BasicStroke stroke |
StrokeBorder | back to summary |
---|---|
public StrokeBorder(BasicStroke stroke) Creates a border of the specified
|
StrokeBorder | back to summary |
---|---|
public StrokeBorder(BasicStroke stroke, Paint paint) Creates a border of the specified
|
getBorderInsets | back to summary |
---|---|
public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Reinitializes the |
getPaint | back to summary |
---|---|
public Paint getPaint() Returns the |
getStroke | back to summary |
---|---|
public BasicStroke getStroke() Returns the
|
paintBorder | back to summary |
---|---|
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Paints the border for the specified component
with the specified position and size.
If the border was not specified with a
|