|
Quaqua 7.4.2 2011-07-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.randelshofer.quaqua.border.BackgroundBorderUIResource
public class BackgroundBorderUIResource
A BackgroundBorderUIResource is used by the Quaqua Look And Feel to tag a BorderUIResource that has to be drawn on to the background of a JComponent.
It is used like a regular Border object, the BackgroundBorderUIResource works like an EmptyBorder. It just has insets, but draws nothing. Using the getBackgroundBorder method, one can retrieve the background border used to draw on the background of a JComponent.
Constructor Summary | |
---|---|
BackgroundBorderUIResource(javax.swing.border.Border backgroundBorder)
Creates an EmptyBorder which has the same insets as the specified background border. |
Method Summary | |
---|---|
javax.swing.border.Border |
getBackgroundBorder()
Returns the border that needs to be drawn onto the background. |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
boolean |
isBorderOpaque()
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackgroundBorderUIResource(javax.swing.border.Border backgroundBorder)
Method Detail |
---|
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
public boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
public javax.swing.border.Border getBackgroundBorder()
BackgroundBorder
getBackgroundBorder
in interface BackgroundBorder
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |