APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.synth

pack-priv Class SynthBorder

extends AbstractBorder
implements UIResource
Class Inheritance
All Implemented Interfaces
javax.swing.plaf.UIResource
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, javax.swing.*, javax.swing.text.JTextComponent, javax.swing.border.*, javax.swing.plaf.UIResource

SynthBorder is a border that delegates to a Painter. The Insets are determined at construction time.
Author
Scott Violet

Field Summary

Modifier and TypeField and Description
private Insets
private SynthUI

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Insets

Returns:

the insets object
getBorderInsets
(Component
the component for which this border insets value applies
c
,
Insets
the object to be reinitialized
insets
)

Overrides javax.swing.border.AbstractBorder.getBorderInsets.

Reinitializes the insets parameter with this Border's current Insets.

public boolean

Returns:

false
isBorderOpaque
()

Overrides javax.swing.border.AbstractBorder.isBorderOpaque.

Implements javax.swing.border.Border.isBorderOpaque.

This default implementation returns false.

public void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)

Overrides javax.swing.border.AbstractBorder.paintBorder.

Implements javax.swing.border.Border.paintBorder.

This default implementation does no painting.

Inherited from javax.swing.border.AbstractBorder:
getBaselinegetBaselineResizeBehaviorgetBorderInsetsgetInteriorRectanglegetInteriorRectangle

Field Detail

insetsback to summary
private Insets insets
uiback to summary
private SynthUI ui

Constructor Detail

SynthBorderback to summary
pack-priv SynthBorder(SynthUI ui, Insets insets)
SynthBorderback to summary
pack-priv SynthBorder(SynthUI ui)

Method Detail

getBorderInsetsback to summary
public Insets getBorderInsets(Component c, Insets insets)

Overrides javax.swing.border.AbstractBorder.getBorderInsets.

Reinitializes the insets parameter with this Border's current Insets.

Parameters
c:Component

the component for which this border insets value applies

insets:Insets

the object to be reinitialized

Returns:Insets

the insets object

isBorderOpaqueback to summary
public boolean isBorderOpaque()

Overrides javax.swing.border.AbstractBorder.isBorderOpaque.

Implements javax.swing.border.Border.isBorderOpaque.

This default implementation returns false.

Returns:boolean

false

paintBorderback to summary
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)

Overrides javax.swing.border.AbstractBorder.paintBorder.

Implements javax.swing.border.Border.paintBorder.

Doc from javax.swing.border.AbstractBorder.paintBorder.

This default implementation does no painting.