net.yura.mobile.gui.border
Class BevelBorder

java.lang.Object
  extended by net.yura.mobile.gui.border.BevelBorder
All Implemented Interfaces:
Border

public class BevelBorder
extends Object
implements Border

Author:
Yura Mamyrin
See Also:
BevelBorder

Field Summary
protected  int highlight
           
protected  int shadow
           
protected  int thickness
           
 
Constructor Summary
BevelBorder(int thickness, int highlight, int shadow)
           
 
Method Summary
 int getBottom()
           
 int getLeft()
           
 int getRight()
           
 int getTop()
           
 boolean isBorderOpaque()
           
 void paintBorder(Component comp, Graphics2D g, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

highlight

protected int highlight

shadow

protected int shadow

thickness

protected int thickness
Constructor Detail

BevelBorder

public BevelBorder(int thickness,
                   int highlight,
                   int shadow)
See Also:
BevelBorder.BevelBorder
Method Detail

getBottom

public int getBottom()
Specified by:
getBottom in interface Border
Returns:
The size of the bottom
See Also:
EmptyBorder.getBorderInsets

getLeft

public int getLeft()
Specified by:
getLeft in interface Border
Returns:
The size of the left
See Also:
EmptyBorder.getBorderInsets

getRight

public int getRight()
Specified by:
getRight in interface Border
Returns:
The size of the right
See Also:
EmptyBorder.getBorderInsets

getTop

public int getTop()
Specified by:
getTop in interface Border
Returns:
The size of the top
See Also:
EmptyBorder.getBorderInsets

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border
Returns:
Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting.
See Also:
Border.isBorderOpaque

paintBorder

public void paintBorder(Component comp,
                        Graphics2D g,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border
Parameters:
comp -
g -
width -
height -
See Also:
EmptyBorder.paintBorder