bibliothek.extension.gui.dock.theme.eclipse
Class EclipseButtonBorder

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.AbstractEclipseBorder
      extended by bibliothek.extension.gui.dock.theme.eclipse.EclipseButtonBorder
All Implemented Interfaces:
javax.swing.border.Border

@ColorCodes(value="flap.button.border.edges")
public class EclipseButtonBorder
extends AbstractEclipseBorder

A Border used by the EclipseButtonTitle.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from class bibliothek.extension.gui.dock.theme.eclipse.AbstractEclipseBorder
BOTTOM_LEFT, BOTTOM_RIGHT, TOP_LEFT, TOP_RIGHT
 
Constructor Summary
EclipseButtonBorder(DockController controller, boolean fillEdges, int edges)
          Creates a new border
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class bibliothek.extension.gui.dock.theme.eclipse.AbstractEclipseBorder
getController, getRoundEdges, isBorderOpaque, isFillEdges, setFillEdges, setRoundEdges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseButtonBorder

public EclipseButtonBorder(DockController controller,
                           boolean fillEdges,
                           int edges)
Creates a new border

Parameters:
controller - the controller in whose realm this border is used
fillEdges - whether to fill the edges with a color
edges - which edges to paint round, a bitwise or of the constants defined in AbstractEclipseBorder
Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)