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

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.AbstractEclipseBorder
      extended by bibliothek.extension.gui.dock.theme.eclipse.EclipseBorder
All Implemented Interfaces:
Border
Direct Known Subclasses:
OwnedEclipseBorder

@ColorCodes(value={"stack.border","stack.border.edges"})
public class EclipseBorder
extends AbstractEclipseBorder

A border that has round edges.

Author:
Janni Kovacs, 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
EclipseBorder(DockController controller, boolean fillEdges)
          Creates a new border
EclipseBorder(DockController controller, boolean fillEdges, int edges)
          Creates a new border
 
Method Summary
 Insets getBorderInsets(Component c)
           
 void paintBorder(Component c, 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

EclipseBorder

public EclipseBorder(DockController controller,
                     boolean fillEdges)
Creates a new border

Parameters:
controller - the owner of this border
fillEdges - whether to paint over the edges

EclipseBorder

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

Parameters:
controller - the owner of this border
fillEdges - whether to paint over the edges
edges - the edges that are painted round, or-ed from AbstractEclipseBorder.TOP_LEFT, AbstractEclipseBorder.TOP_RIGHT, AbstractEclipseBorder.BOTTOM_LEFT and AbstractEclipseBorder.BOTTOM_RIGHT
Method Detail

paintBorder

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

getBorderInsets

public Insets getBorderInsets(Component c)