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

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

public abstract class AbstractEclipseBorder
extends Object
implements Border

Abstract Border managing basic properties that are required by varios Borders related to the EclipseTheme.

Author:
Benjamin Sigg

Field Summary
static int BOTTOM_LEFT
          constant indicating the bottom left edge has to be painted round
static int BOTTOM_RIGHT
          constant indicating the bottom right edge has to be painted round
static int TOP_LEFT
          constant indicating the top left edge has to be painted round
static int TOP_RIGHT
          constant indicating the top right edge has to be painted round
 
Constructor Summary
AbstractEclipseBorder(DockController controller, boolean fillEdges)
          Creates a new border
AbstractEclipseBorder(DockController controller, boolean fillEdges, int edges)
          Creates a new border
 
Method Summary
 DockController getController()
          Gets the controller in whose realm this border paints
 int getRoundEdges()
          Tells which edges are painted round.
 boolean isBorderOpaque()
           
 boolean isFillEdges()
          Tells whether the edges should be painted.
 void setFillEdges(boolean fillEdges)
          Sets whether the edges should be filled
 void setRoundEdges(int roundEdges)
          Sets which edges are painted round.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.border.Border
getBorderInsets, paintBorder
 

Field Detail

TOP_LEFT

public static final int TOP_LEFT
constant indicating the top left edge has to be painted round

See Also:
Constant Field Values

TOP_RIGHT

public static final int TOP_RIGHT
constant indicating the top right edge has to be painted round

See Also:
Constant Field Values

BOTTOM_LEFT

public static final int BOTTOM_LEFT
constant indicating the bottom left edge has to be painted round

See Also:
Constant Field Values

BOTTOM_RIGHT

public static final int BOTTOM_RIGHT
constant indicating the bottom right edge has to be painted round

See Also:
Constant Field Values
Constructor Detail

AbstractEclipseBorder

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

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

AbstractEclipseBorder

public AbstractEclipseBorder(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 TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT and BOTTOM_RIGHT
Method Detail

setRoundEdges

public void setRoundEdges(int roundEdges)
Sets which edges are painted round.

Parameters:
roundEdges - the edges to paint round

getRoundEdges

public int getRoundEdges()
Tells which edges are painted round.

Returns:
the round edges

setFillEdges

public void setFillEdges(boolean fillEdges)
Sets whether the edges should be filled

Parameters:
fillEdges - whether to paint the edges

isFillEdges

public boolean isFillEdges()
Tells whether the edges should be painted.

Returns:
true if the edges are to be filled

getController

public DockController getController()
Gets the controller in whose realm this border paints

Returns:
the controller

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border