net.yura.mobile.gui.border
Class CompoundBorder

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

public class CompoundBorder
extends Object
implements Border

Author:
Yura Mamyrin
See Also:
CompoundBorder

Constructor Summary
CompoundBorder(Border outside, Border inside)
           
 
Method Summary
 int getBottom()
           
 Border getInsideBorder()
           
 int getLeft()
           
 Border getOutsideBorder()
           
 int getRight()
           
 int getTop()
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, Graphics2D g, int width, int height)
           
 void setInsideBorder(Border insideBorder)
           
 void setOutsideBorder(Border outsideBorder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundBorder

public CompoundBorder(Border outside,
                      Border inside)
Parameters:
outside - the outside border
inside - the inside border to be nested
See Also:
CompoundBorder.CompoundBorder
Method Detail

getBottom

public int getBottom()
Specified by:
getBottom in interface Border
Returns:
the bottom of the composite border by adding the bottom of the outside border to the bottom of the inside border
See Also:
CompoundBorder.getBorderInsets

getInsideBorder

public Border getInsideBorder()
Returns:
the inside border object
See Also:
CompoundBorder.getInsideBorder

getLeft

public int getLeft()
Specified by:
getLeft in interface Border
Returns:
the left of the composite border by adding the left of the outside border to the left of the inside border
See Also:
CompoundBorder.getBorderInsets

getOutsideBorder

public Border getOutsideBorder()
Returns:
the outside border object
See Also:
CompoundBorder.getOutsideBorder

getRight

public int getRight()
Specified by:
getRight in interface Border
Returns:
the right of the composite border by adding the right of the outside border to the right of the inside border
See Also:
CompoundBorder.getBorderInsets

getTop

public int getTop()
Specified by:
getTop in interface Border
Returns:
the top of the composite border by adding the top of the outside border to the top of the inside border
See Also:
CompoundBorder.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 c,
                        Graphics2D g,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border
Parameters:
c -
g -
width -
height -
See Also:
CompoundBorder.paintBorder

setInsideBorder

public void setInsideBorder(Border insideBorder)

setOutsideBorder

public void setOutsideBorder(Border outsideBorder)