javax.swing.plaf.basic
Class BasicBorders.ToggleButtonBorder

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.border.AbstractBorder sample code for javax.swing.border.AbstractBorder definition code for javax.swing.border.AbstractBorder 
      extended by javax.swing.plaf.basic.BasicBorders.ButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder 
          extended by javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border , UIResource sample code for javax.swing.plaf.UIResource definition code for javax.swing.plaf.UIResource
Enclosing class:
BasicBorders sample code for javax.swing.plaf.basic.BasicBorders definition code for javax.swing.plaf.basic.BasicBorders

public static class BasicBorders.ToggleButtonBorder
extends BasicBorders.ButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicBorders.ButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder
darkShadow sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.darkShadow definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.darkShadow , highlight sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.highlight definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.highlight , lightHighlight sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.lightHighlight definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.lightHighlight , shadow sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.shadow definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.shadow
 
Constructor Summary
BasicBorders.ToggleButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.BasicBorders.ToggleButtonBorder(java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.BasicBorders.ToggleButtonBorder(java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  shadow, Color sample code for java.awt.Color definition code for java.awt.Color  darkShadow, Color sample code for java.awt.Color definition code for java.awt.Color  highlight, Color sample code for java.awt.Color definition code for java.awt.Color  lightHighlight)
           
 
Method Summary
 Insets sample code for java.awt.Insets definition code for java.awt.Insets getBorderInsets sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  c)
          This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.
 Insets sample code for java.awt.Insets definition code for java.awt.Insets getBorderInsets sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component, java.awt.Insets) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component, java.awt.Insets) (Component sample code for java.awt.Component definition code for java.awt.Component  c, Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets)
          Reinitializes the insets parameter with this Border's current Insets.
 void paintBorder sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) (Component sample code for java.awt.Component definition code for java.awt.Component  c, Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int x, int y, int width, int height)
          This default implementation does no painting.
 
Methods inherited from class javax.swing.border.AbstractBorder sample code for javax.swing.border.AbstractBorder definition code for javax.swing.border.AbstractBorder
getInteriorRectangle sample code for javax.swing.border.AbstractBorder.getInteriorRectangle(java.awt.Component, javax.swing.border.Border, int, int, int, int) definition code for javax.swing.border.AbstractBorder.getInteriorRectangle(java.awt.Component, javax.swing.border.Border, int, int, int, int) , getInteriorRectangle sample code for javax.swing.border.AbstractBorder.getInteriorRectangle(java.awt.Component, int, int, int, int) definition code for javax.swing.border.AbstractBorder.getInteriorRectangle(java.awt.Component, int, int, int, int) , isBorderOpaque sample code for javax.swing.border.AbstractBorder.isBorderOpaque() definition code for javax.swing.border.AbstractBorder.isBorderOpaque()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BasicBorders.ToggleButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder(java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder(java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color)

public BasicBorders.ToggleButtonBorder(Color sample code for java.awt.Color definition code for java.awt.Color  shadow,
                                       Color sample code for java.awt.Color definition code for java.awt.Color  darkShadow,
                                       Color sample code for java.awt.Color definition code for java.awt.Color  highlight,
                                       Color sample code for java.awt.Color definition code for java.awt.Color  lightHighlight)
Method Detail

paintBorder sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)

public void paintBorder(Component sample code for java.awt.Component definition code for java.awt.Component  c,
                        Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                        int x,
                        int y,
                        int width,
                        int height)
Description copied from class: AbstractBorder sample code for javax.swing.border.AbstractBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.border.AbstractBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)
This default implementation does no painting.

Specified by:
paintBorder sample code for javax.swing.border.Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.border.Border.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) in interface Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border
Overrides:
paintBorder sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int) in class BasicBorders.ButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder
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

getBorderInsets sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component)

public Insets sample code for java.awt.Insets definition code for java.awt.Insets  getBorderInsets(Component sample code for java.awt.Component definition code for java.awt.Component  c)
Description copied from class: AbstractBorder sample code for javax.swing.border.AbstractBorder.getBorderInsets(java.awt.Component) definition code for javax.swing.border.AbstractBorder.getBorderInsets(java.awt.Component)
This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.

Specified by:
getBorderInsets sample code for javax.swing.border.Border.getBorderInsets(java.awt.Component) definition code for javax.swing.border.Border.getBorderInsets(java.awt.Component) in interface Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border
Overrides:
getBorderInsets sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.getBorderInsets(java.awt.Component) definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.getBorderInsets(java.awt.Component) in class BasicBorders.ButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder
Parameters:
c - the component for which this border insets value applies
Returns:
the new Insets object initialized to 0

getBorderInsets sample code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component, java.awt.Insets) definition code for javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder.getBorderInsets(java.awt.Component, java.awt.Insets)

public Insets sample code for java.awt.Insets definition code for java.awt.Insets  getBorderInsets(Component sample code for java.awt.Component definition code for java.awt.Component  c,
                              Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets)
Description copied from class: AbstractBorder sample code for javax.swing.border.AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets) definition code for javax.swing.border.AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
Reinitializes the insets parameter with this Border's current Insets.

Overrides:
getBorderInsets sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.getBorderInsets(java.awt.Component, java.awt.Insets) definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder.getBorderInsets(java.awt.Component, java.awt.Insets) in class BasicBorders.ButtonBorder sample code for javax.swing.plaf.basic.BasicBorders.ButtonBorder definition code for javax.swing.plaf.basic.BasicBorders.ButtonBorder
Parameters:
c - the component for which this border insets value applies
insets - the object to be reinitialized
Returns:
the insets object