com.sibvisions.rad.ui.swing.ext
Class WrappedInsetsBorder

java.lang.Object
  extended by com.sibvisions.rad.ui.swing.ext.WrappedInsetsBorder
All Implemented Interfaces:
Border

public class WrappedInsetsBorder
extends Object
implements Border

The WrappedInsetsBorder wrapps another Border and supports changing the insets and supports painting the border with custom insets instead of the border insets.


Constructor Summary
WrappedInsetsBorder(Border pBorder)
          Creates a new instance of WrappedInsetsBorder.
WrappedInsetsBorder(Border pBorder, Insets pInsets)
          Creates a new instance of WrappedInsetsBorder.
WrappedInsetsBorder(Border pBorder, int pInsets)
          Creates a new instance of WrappedInsetsBorder.
 
Method Summary
 Insets getBorderInsets(Component var1)
          
 Insets getPaintInsets()
          Gets the paint insets.
 boolean isBorderOpaque()
          
 void paintBorder(Component pComponent, Graphics pGraphics, int pX, int pY, int pWidth, int pHeight)
          
 void setPaintInsets(Insets pInsets)
          Sets the paint insets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedInsetsBorder

public WrappedInsetsBorder(Border pBorder)
Creates a new instance of WrappedInsetsBorder.

Parameters:
pBorder - the wrapped border

WrappedInsetsBorder

public WrappedInsetsBorder(Border pBorder,
                           int pInsets)
Creates a new instance of WrappedInsetsBorder.

Parameters:
pBorder - the wrapped border
pInsets - the border insets

WrappedInsetsBorder

public WrappedInsetsBorder(Border pBorder,
                           Insets pInsets)
Creates a new instance of WrappedInsetsBorder.

Parameters:
pBorder - the wrapped border
pInsets - the border insets
Method Detail

paintBorder

public void paintBorder(Component pComponent,
                        Graphics pGraphics,
                        int pX,
                        int pY,
                        int pWidth,
                        int pHeight)

Specified by:
paintBorder in interface Border

getBorderInsets

public Insets getBorderInsets(Component var1)

Specified by:
getBorderInsets in interface Border

isBorderOpaque

public boolean isBorderOpaque()

Specified by:
isBorderOpaque in interface Border

setPaintInsets

public void setPaintInsets(Insets pInsets)
Sets the paint insets.

Parameters:
pInsets - the insets

getPaintInsets

public Insets getPaintInsets()
Gets the paint insets.

Returns:
the insets


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.