com.ptc.wgmecad
Class OvalBorder

java.lang.Object
  extended bycom.ptc.wgmecad.OvalBorder
All Implemented Interfaces:
Border

public class OvalBorder
extends Object
implements Border


Field Summary
protected  Color m_bottomColor
           
protected  int m_h
           
protected  Color m_topColor
           
protected  int m_w
           
 
Constructor Summary
OvalBorder()
           
OvalBorder(int w, int h)
           
OvalBorder(int w, int h, Color topColor, Color bottomColor)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
static void main(String[] args)
           
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_w

protected int m_w

m_h

protected int m_h

m_topColor

protected Color m_topColor

m_bottomColor

protected Color m_bottomColor
Constructor Detail

OvalBorder

public OvalBorder()

OvalBorder

public OvalBorder(int w,
                  int h)

OvalBorder

public OvalBorder(int w,
                  int h,
                  Color topColor,
                  Color bottomColor)
Method Detail

getBorderInsets

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

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border

paintBorder

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

main

public static void main(String[] args)