com.levigo.util.swing.borders
Class LayeredBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by com.levigo.util.swing.borders.LayeredBorder
All Implemented Interfaces:
Serializable, Border

public class LayeredBorder
extends AbstractBorder

A Border implementation which layers two or more delegate borders atop of each other.

See Also:
Serialized Form

Constructor Summary
LayeredBorder(Border... layers)
           
 
Method Summary
 Insets getBorderInsets(Component c, Insets insets)
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 
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

LayeredBorder

public LayeredBorder(Border... layers)
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
Overrides:
getBorderInsets in class AbstractBorder


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