org.icepdf.ri.common.views
Class ResizableBorder
java.lang.Object
javax.swing.border.AbstractBorder
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
| 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 |
INSETS
public static final int INSETS
- See Also:
- Constant Field Values
resizeWidgetDim
protected int resizeWidgetDim
originalResizeWidgetDim
protected int originalResizeWidgetDim
inset
protected int inset
ResizableBorder
public ResizableBorder(int resizeBoxSize)
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)