org.openbp.swing.plaf.sky
Class SimpleRoundBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by org.openbp.swing.plaf.sky.SimpleRoundBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class SimpleRoundBorder
extends javax.swing.border.AbstractBorder

A Round Border with one dark line.

Author:
Jens Ferchland
See Also:
Serialized Form

Constructor Summary
SimpleRoundBorder()
          Creates a new SimpleRoundBorder instance with no Insets.
SimpleRoundBorder(java.awt.Insets insets)
          Creates a new SimpleRoundBorder instance with the given Insets between Component and Border.
SimpleRoundBorder(int top, int left, int bottom, int right)
          Creates a new SimpleRoundBorder instance with the given Insets between Componetn and Border.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Implements AbstractBorder and returns teh current Insets.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Implements AbstracBorder and paints the Border around the Component.
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRoundBorder

public SimpleRoundBorder(java.awt.Insets insets)
Creates a new SimpleRoundBorder instance with the given Insets between Component and Border.

Parameters:
insets - an Insets value

SimpleRoundBorder

public SimpleRoundBorder(int top,
                         int left,
                         int bottom,
                         int right)
Creates a new SimpleRoundBorder instance with the given Insets between Componetn and Border.

Parameters:
top - the top offset
left - the left offset
bottom - the bottom offset
right - the right offset

SimpleRoundBorder

public SimpleRoundBorder()
Creates a new SimpleRoundBorder instance with no Insets.

Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Implements AbstracBorder and paints the Border around the Component.

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder
Parameters:
c - a Component value
g - a Graphics value
x - an int value
y - an int value
width - an int value
height - an int value

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Implements AbstractBorder and returns teh current Insets.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
Parameters:
c - a Component value
Returns:
an Insets value


Copyright © 2011. All Rights Reserved.