org.icepdf.ri.common.views
Class ResizableBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by org.icepdf.ri.common.views.ResizableBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class ResizableBorder
extends javax.swing.border.AbstractBorder

The resizable border is mainly designed to bed used with mutable annotation in the UI but suspect it could be used for after content manipulation. Like other Swing Borders the same instance can be used on multiple components.

Since:
4.0
See Also:
Serialized Form

Field Summary
protected  int inset
           
static int INSETS
           
protected  int originalResizeWidgetDim
           
protected  int resizeWidgetDim
           
 
Constructor Summary
ResizableBorder(int resizeBoxSize)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component component)
           
 int getCursor(java.awt.event.MouseEvent me)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component component, java.awt.Graphics g, int x, int y, int w, int h)
           
 void setZoom(float zoom)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSETS

public static final int INSETS
See Also:
Constant Field Values

resizeWidgetDim

protected int resizeWidgetDim

originalResizeWidgetDim

protected int originalResizeWidgetDim

inset

protected int inset
Constructor Detail

ResizableBorder

public ResizableBorder(int resizeBoxSize)
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component component)
Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

setZoom

public void setZoom(float zoom)

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.AbstractBorder

paintBorder

public void paintBorder(java.awt.Component component,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder

getCursor

public int getCursor(java.awt.event.MouseEvent me)