de.uni_paderborn.fujaba.fsa.swing.border
Class OvalBorder

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byde.uni_paderborn.fujaba.fsa.swing.border.AbstractColorBorder
          extended byde.uni_paderborn.fujaba.fsa.swing.border.OvalBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable

public class OvalBorder
extends AbstractColorBorder

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.14 $
Author:
$Author: lowende $
See Also:
Serialized Form

Constructor Summary
OvalBorder()
          Constructor for class OvalBorder
OvalBorder(boolean opaque)
          Creates a new OvalBorder with the given parameters.
OvalBorder(boolean opaque, java.awt.Stroke stroke)
          Creates a new OvalBorder with the given parameters.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Get the borderInsets attribute of the OvalBorder object
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
          Get the borderInsets attribute of the OvalBorder object
 java.awt.Stroke getStroke()
          Get the stroke attribute of the OvalBorder object
 int getThickness()
          Get the thickness attribute of the OvalBorder object
 boolean isBorderDashed()
          Get the borderDashed attribute of the OvalBorder object
 boolean isBorderOpaque()
          Get the borderOpaque attribute of the OvalBorder object
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          This method draws an oval border around the component, filling the oval inside depending on isBorderOpaque().
 void setBorderDashed(boolean dashed)
          Sets the borderDashed attribute of the OvalBorder object
 void setBorderOpaque(boolean opaque)
          Sets the borderOpaque attribute of the OvalBorder object
 void setDoubleOval(boolean value)
          Sets the doubleOval attribute of the OvalBorder object
 void setStroke(java.awt.Stroke stroke)
          Sets the stroke attribute of the OvalBorder object
 void setThickness(int newThickness)
          Sets the thickness attribute of the OvalBorder object
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.border.AbstractColorBorder
getBorderColor, setBorderColor
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OvalBorder

public OvalBorder()
Constructor for class OvalBorder


OvalBorder

public OvalBorder(boolean opaque,
                  java.awt.Stroke stroke)
Creates a new OvalBorder with the given parameters.

Parameters:
opaque - if set to true, the inner area of the oval will be cleared while drawing
stroke - stroke to use while rendering the border. Can be used to increase the border thickness.

OvalBorder

public OvalBorder(boolean opaque)
Creates a new OvalBorder with the given parameters.

Parameters:
opaque - if set to true, the inner area of the oval will be cleared while drawing
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Get the borderInsets attribute of the OvalBorder object

Parameters:
c - No description provided
Returns:
The borderInsets value

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
Get the borderInsets attribute of the OvalBorder object

Parameters:
c - No description provided
insets - No description provided
Returns:
The borderInsets value

setBorderOpaque

public void setBorderOpaque(boolean opaque)
Sets the borderOpaque attribute of the OvalBorder object

Parameters:
opaque - The new borderOpaque value

isBorderOpaque

public boolean isBorderOpaque()
Get the borderOpaque attribute of the OvalBorder object

Returns:
The borderOpaque value

getStroke

public java.awt.Stroke getStroke()
Get the stroke attribute of the OvalBorder object

Returns:
The stroke value

setStroke

public void setStroke(java.awt.Stroke stroke)
Sets the stroke attribute of the OvalBorder object

Parameters:
stroke - The new stroke value

setBorderDashed

public void setBorderDashed(boolean dashed)
Sets the borderDashed attribute of the OvalBorder object

Parameters:
dashed - The new borderDashed value

isBorderDashed

public boolean isBorderDashed()
Get the borderDashed attribute of the OvalBorder object

Returns:
The borderDashed value

setThickness

public void setThickness(int newThickness)
Sets the thickness attribute of the OvalBorder object

Parameters:
newThickness - The new thickness value

getThickness

public int getThickness()
Get the thickness attribute of the OvalBorder object

Returns:
The thickness value

setDoubleOval

public void setDoubleOval(boolean value)
Sets the doubleOval attribute of the OvalBorder object

Parameters:
value - The new doubleOval value

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
This method draws an oval border around the component, filling the oval inside depending on isBorderOpaque().

Parameters:
c - No description provided
g - No description provided
x - No description provided
y - No description provided
width - No description provided
height - No description provided