|
Quaqua 8.0 2011-10-02 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.quaqua.QuaquaButtonBorder
public class QuaquaButtonBorder
QuaquaButtonBorder. This border uses client properties and font sizes of a JComponent to determine which style the border shall have. For some styles, the JComponent should honour size constrictions.
The following values of the client property Quaqua.Button.style
are supported:
push Rounded push button. Maximum height of the JComponent
shall be constrained to its preferred height.square Square button. No size constraints.placard or gradient Placard button. No size constraints.colorWell Square button with color area in the center.
No size constraints.bevel Rounded Bevel button. No size constraints.toggle or segmented Toggle button. Maximum height of the JComponent
shall be constrained to its preferred height.toggleWest West Toggle button. Maximum height of the JComponent
shall be constrained to its preferred height.toggleEast East Toggle button. Maximum height of the JComponent
shall be constrained to its preferred height.toggleCenter Center Toggle button. Maximum height of the JComponent
shall be constrained to its preferred height.toolBar ToolBar button. No size constraints.toolBarTab ToolBar Tab button. No size constraints.toolBarRollover ToolBar button with rollover effect. No size constraints.Quaqua.Button.style property is missing, then the
following values of the client property JButton.buttonType
are supported:
text Rounded push button. Maximum height of the JComponent
shall be constrained to its preferred height.toolBar Square button. No size constraints.icon Rounded Bevel button. No size constraints.
| Constructor Summary | |
|---|---|
QuaquaButtonBorder(java.lang.String defaultStyle)
Creates a new instance. |
|
| Method Summary | |
|---|---|
javax.swing.border.Border |
getActualBorder(java.awt.Component c)
Returns a Border that implements the VisualMargin interface. |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns true, if this border has a visual cue for the disabled state of the button. |
java.awt.Insets |
getDefaultMargin(javax.swing.JComponent c)
Returns the default button margin for the specified component. |
protected java.lang.String |
getStyle(java.awt.Component c)
|
java.awt.Insets |
getVisualMargin(java.awt.Component c)
|
boolean |
hasPressedCue(javax.swing.JComponent c)
Returns true, if this border has a visual cue for the pressed state of the button. |
boolean |
isBorderOpaque()
|
boolean |
isFixedHeight(javax.swing.JComponent c)
|
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 QuaquaButtonBorder(java.lang.String defaultStyle)
| Method Detail |
|---|
public javax.swing.border.Border getActualBorder(java.awt.Component c)
public java.awt.Insets getDefaultMargin(javax.swing.JComponent c)
public boolean isFixedHeight(javax.swing.JComponent c)
protected java.lang.String getStyle(java.awt.Component c)
public boolean hasPressedCue(javax.swing.JComponent c)
hasPressedCue in interface PressedCueBorderpublic java.awt.Insets getVisualMargin(java.awt.Component c)
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.Borderpublic 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
|
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 | ||||||||