org.tbee.swing
Class DashedBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.EmptyBorder
          extended by org.tbee.swing.DashedBorder
All Implemented Interfaces:
Serializable, Border

public class DashedBorder
extends EmptyBorder

Draw a dashed border

Author:
Tom Eugelink
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
 
Constructor Summary
DashedBorder(int size, Color color)
           
DashedBorder(int top, int left, int bottom, int right, Color color, float dashsize)
           
 
Method Summary
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 
Methods inherited from class javax.swing.border.EmptyBorder
getBorderInsets, getBorderInsets, getBorderInsets, isBorderOpaque
 
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
 

Constructor Detail

DashedBorder

public DashedBorder(int size,
                    Color color)
Parameters:
size -
color -

DashedBorder

public DashedBorder(int top,
                    int left,
                    int bottom,
                    int right,
                    Color color,
                    float dashsize)
Parameters:
top -
left -
bottom -
right -
color -
dashsize -
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class EmptyBorder


Copyright © 2012 KnowledgePlaza. All Rights Reserved.