Class Overview
A border for the ToolBar. If the ToolBar is floatable then the handle grip is drawn
Summary
[Expand]
Inherited Constants |
From interface
javax.swing.SwingConstants
int |
BOTTOM |
Box-orientation constant used to specify the bottom of a box. |
int |
CENTER |
The central position in an area. |
int |
EAST |
Compass-direction east (right). |
int |
HORIZONTAL |
Horizontal orientation. |
int |
LEADING |
Identifies the leading edge of text for use with left-to-right
and right-to-left languages. |
int |
LEFT |
Box-orientation constant used to specify the left side of a box. |
int |
NEXT |
Identifies the next direction in a sequence. |
int |
NORTH |
Compass-direction North (up). |
int |
NORTH_EAST |
Compass-direction north-east (upper right). |
int |
NORTH_WEST |
Compass-direction north west (upper left). |
int |
PREVIOUS |
Identifies the previous direction in a sequence. |
int |
RIGHT |
Box-orientation constant used to specify the right side of a box. |
int |
SOUTH |
Compass-direction south (down). |
int |
SOUTH_EAST |
Compass-direction south-east (lower right). |
int |
SOUTH_WEST |
Compass-direction south-west (lower left). |
int |
TOP |
Box-orientation constant used to specify the top of a box. |
int |
TRAILING |
Identifies the trailing edge of text for use with left-to-right
and right-to-left languages. |
int |
VERTICAL |
Vertical orientation. |
int |
WEST |
Compass-direction west (left). |
|
[Expand]
Inherited Methods |
From class
javax.swing.border.AbstractBorder
int
|
getBaseline(Component c, int width, int height)
Returns the baseline.
|
Component.BaselineResizeBehavior
|
getBaselineResizeBehavior(Component c)
Returns an enum indicating how the baseline of a component
changes as the size changes.
|
Insets
|
getBorderInsets(Component c, Insets insets)
Reinitializes the insets parameter with this Border's current Insets.
|
Insets
|
getBorderInsets(Component c)
This default implementation returns a new Insets
instance where the top , left ,
bottom , and
right fields are set to 0 .
|
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.
|
Rectangle
|
getInteriorRectangle(Component c, int x, int y, int width, int height)
This convenience method calls the static method.
|
boolean
|
isBorderOpaque()
This default implementation returns false.
|
void
|
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
This default implementation does no painting.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
javax.swing.border.Border
|
Fields
protected
Color
highlight
Public Constructors
public
WindowsBorders.ToolBarBorder
(Color shadow, Color highlight)
Public Methods
Reinitializes the insets parameter with this Border's current Insets.
Parameters
c
| the component for which this border insets value applies |
insets
| the object to be reinitialized |
This default implementation returns a new Insets
instance where the top
, left
,
bottom
, and
right
fields are set to 0
.
Parameters
c
| the component for which this border insets value applies |
Returns
- the new
Insets
object initialized to 0
public
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height)
This default implementation does no painting.
Parameters
c
| the component for which this border is being painted |
g
| the paint graphics |
x
| the x position of the painted border |
y
| the y position of the painted border |
width
| the width of the painted border |
height
| the height of the painted border
|