com.levigo.util.swing
Class RoundedBorder

java.lang.Object
  extended by com.levigo.util.swing.RoundedBorder
All Implemented Interfaces:
Border

public class RoundedBorder
extends Object
implements Border

Author:
hennejg

Constructor Summary
RoundedBorder(int radius, Color matteColor)
           
RoundedBorder(int radius, Color matteColor, boolean outside)
           
RoundedBorder(int radius, Color matteColor, boolean outside, boolean fill)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundedBorder

public RoundedBorder(int radius,
                     Color matteColor)

RoundedBorder

public RoundedBorder(int radius,
                     Color matteColor,
                     boolean outside)

RoundedBorder

public RoundedBorder(int radius,
                     Color matteColor,
                     boolean outside,
                     boolean fill)
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 width,
                        int height)
Specified by:
paintBorder in interface Border


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.