org.noos.xing.mydoggy.plaf.ui.cmp.border
Class LineBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by org.noos.xing.mydoggy.plaf.ui.cmp.border.LineBorder
All Implemented Interfaces:
Serializable, Border

public class LineBorder
extends AbstractBorder

Author:
Angelo De Caro
See Also:
Serialized Form

Field Summary
protected  int arcHeight
           
protected  int arcWidth
           
protected  Color lineColor
           
protected  boolean roundedCorners
           
protected  int thickness
           
 
Constructor Summary
LineBorder()
           
LineBorder(Color color)
           
LineBorder(Color color, int thickness)
           
LineBorder(Color lineColor, int thickness, boolean roundedCorners, int arcWidth, int arcHeight)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 Insets getBorderInsets(Component c, Insets insets)
           
 Color getLineColor()
           
 boolean getRoundedCorners()
           
 int getThickness()
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void setLineColor(Color lineColor)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thickness

protected int thickness

lineColor

protected Color lineColor

roundedCorners

protected boolean roundedCorners

arcHeight

protected int arcHeight

arcWidth

protected int arcWidth
Constructor Detail

LineBorder

public LineBorder()

LineBorder

public LineBorder(Color color)

LineBorder

public LineBorder(Color color,
                  int thickness)

LineBorder

public LineBorder(Color lineColor,
                  int thickness,
                  boolean roundedCorners,
                  int arcWidth,
                  int arcHeight)
Method Detail

paintBorder

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

getBorderInsets

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

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
Overrides:
getBorderInsets in class AbstractBorder

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border
Overrides:
isBorderOpaque in class AbstractBorder

getLineColor

public Color getLineColor()

setLineColor

public void setLineColor(Color lineColor)

getThickness

public int getThickness()

getRoundedCorners

public boolean getRoundedCorners()


Copyright © 2012. All Rights Reserved.