com.togethersoft.openapi.util.ui
Class ResizableDialogBorder

java.lang.Object
  |
  +--javax.swing.border.AbstractBorder
        |
        +--javax.swing.border.EmptyBorder
              |
              +--com.togethersoft.openapi.util.ui.ResizableDialogBorder

public class ResizableDialogBorder
extends EmptyBorder

Special empty border with icon which indicate that dialog is resizable at bottom-left corner

Author:
TogetherSoft
Since: Together 5.0

Field Summary
 private static IconCORNER_ICON
           

Fields inherited from class javax.swing.border.EmptyBorder
left, right, top, bottom

Constructor Summary
ResizableDialogBorder(int top, int left, int bottom, int right)
          Creates a border for resizable dialog with the specified insets.
ResizableDialogBorder(Insets borderInsets)
          Creates a border for resizable dialog with the specified insets.

Method Summary
 voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height)
          Draw icon which indicate that dialog is resizable at bottom-left corner

Methods inherited from class javax.swing.border.EmptyBorder
getBorderInsets, getBorderInsets, getBorderInsets, isBorderOpaque

Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

CORNER_ICON

private static Icon CORNER_ICON
Constructor Detail

ResizableDialogBorder

public ResizableDialogBorder(int top, int left, int bottom, int right)
Creates a border for resizable dialog with the specified insets.
Parameters:
top the top inset of the border
left the left inset of the border
bottom the bottom inset of the border
right the right inset of the border

ResizableDialogBorder

public ResizableDialogBorder(Insets borderInsets)
Creates a border for resizable dialog with the specified insets.
Parameters:
borderInsets the insets of the border
Method Detail

paintBorder

public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Draw icon which indicate that dialog is resizable at bottom-left corner

Association Links

to Class javax.swing.Icon