|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.WidgetContainer
buoy.widget.BOutline
public class BOutline
A BOutline is a WidgetContainer that draws an outline around another Widget. The appearance of the outline is determined by a javax.swing.border.Border object. There are static methods for creating several common types of outlines, or you can use a different type by providing your own Border object.
Constructor Summary | |
---|---|
BOutline()
Create a new BOutline with no content Widget and no border. |
|
BOutline(Widget content,
javax.swing.border.Border border)
Create a new BOutline. |
Method Summary | |
---|---|
static BOutline |
createBevelBorder(Widget content,
boolean raised)
Create a BOutline with a beveled border. |
static BOutline |
createEmptyBorder(Widget content,
int thickness)
Create a BOutline with an empty border. |
static BOutline |
createEtchedBorder(Widget content,
boolean raised)
Create a BOutline with an etched border. |
static BOutline |
createLineBorder(Widget content,
java.awt.Color color,
int thickness)
Create a BOutline with a line border. |
javax.swing.border.Border |
getBorder()
Get the Border object which draws this Widget's outline. |
int |
getChildCount()
Get the number of children in this container. |
java.util.Collection<Widget> |
getChildren()
Get a Collection containing all child Widgets of this container. |
Widget |
getContent()
Get the content Widget. |
java.awt.Dimension |
getMaximumSize()
Get the largest size at which this Widget can reasonably be drawn. |
java.awt.Dimension |
getMinimumSize()
Get the smallest size at which this Widget can reasonably be drawn. |
java.awt.Dimension |
getPreferredSize()
Get the preferred size at which this Widget will look best. |
void |
layoutChildren()
Layout the child Widgets. |
void |
remove(Widget widget)
Remove a child Widget from this container. |
void |
removeAll()
Remove the content Widget from this container. |
void |
setBorder(javax.swing.border.Border border)
Set the Border object which draws this Widget's outline. |
void |
setContent(Widget contentWidget)
Set the content Widget. |
Methods inherited from class buoy.widget.WidgetContainer |
---|
isOpaque, setOpaque |
Methods inherited from class buoy.widget.Widget |
---|
addEventLink, dispatchEvent, getBackground, getBounds, getComponent, getCursor, getFont, getName, getParent, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible |
Methods inherited from class buoy.event.EventSource |
---|
addEventLink, addEventLink, removeEventLink |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BOutline()
public BOutline(Widget content, javax.swing.border.Border border)
content
- the Widget to use as the content of the BOutlineborder
- the outline to draw around the content WidgetMethod Detail |
---|
public static BOutline createEmptyBorder(Widget content, int thickness)
content
- the Widget to use as the content of the BOutlinethickness
- the thickness of the borderpublic static BOutline createEtchedBorder(Widget content, boolean raised)
content
- the Widget to use as the content of the BOutlineraised
- if true, the border will have a raised appearance. If false, it will
have a lowered appearance.public static BOutline createBevelBorder(Widget content, boolean raised)
content
- the Widget to use as the content of the BOutlineraised
- if true, the border will have a raised appearance. If false, it will
have a lowered appearance.public static BOutline createLineBorder(Widget content, java.awt.Color color, int thickness)
content
- the Widget to use as the content of the BOutlinecolor
- the color of the borderthickness
- the thickness of the borderpublic javax.swing.border.Border getBorder()
public void setBorder(javax.swing.border.Border border)
public Widget getContent()
public void setContent(Widget contentWidget)
public int getChildCount()
getChildCount
in class WidgetContainer
public java.util.Collection<Widget> getChildren()
getChildren
in class WidgetContainer
public void remove(Widget widget)
remove
in class WidgetContainer
public void removeAll()
removeAll
in class WidgetContainer
public void layoutChildren()
layoutChildren
in class WidgetContainer
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class Widget
public java.awt.Dimension getMaximumSize()
getMaximumSize
in class Widget
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class Widget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |