bibliothek.extension.gui.dock.theme.flat
Class FlatBorder

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.flat.FlatBorder
All Implemented Interfaces:
Border

@ColorCodes(value={"displayer.border","displayer.border.light","displayer.border.middle","displayer.border.dark"})
public class FlatBorder
extends Object
implements Border

A Border which paints a 3d-effect. The owner of this border seems to fly over its parent.

Author:
Benjamin Sigg

Constructor Summary
FlatBorder(DockableDisplayer owner)
          Creates a new border.
 
Method Summary
 void connect(DockController controller)
          Connects this border with controller and reads some colors from controller.
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, 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

FlatBorder

public FlatBorder(DockableDisplayer owner)
Creates a new border.

Parameters:
owner - the component which uses this border
Method Detail

connect

public void connect(DockController controller)
Connects this border with controller and reads some colors from controller.

Parameters:
controller - the source of information or null

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border

isBorderOpaque

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