- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- org.icepdf.ri.common.views.ResizableBorder
-
- All Implemented Interfaces:
Serializable,Border
public class ResizableBorder extends 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
Fields Modifier and Type Field Description protected intinsetstatic intINSETSprotected intoriginalResizeWidgetDimprotected intresizeWidgetDim
-
Constructor Summary
Constructors Constructor Description ResizableBorder(int resizeBoxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsetsgetBorderInsets(Component component)intgetCursor(MouseEvent me)booleanisBorderOpaque()voidpaintBorder(Component component, Graphics g, int x, int y, int w, int h)voidsetZoom(float zoom)-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
-
-
-
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
-
-
Method Detail
-
getBorderInsets
public Insets getBorderInsets(Component component)
- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder
-
setZoom
public void setZoom(float zoom)
-
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaquein interfaceBorder- Overrides:
isBorderOpaquein classAbstractBorder
-
paintBorder
public void paintBorder(Component component, Graphics g, int x, int y, int w, int h)
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder
-
getCursor
public int getCursor(MouseEvent me)
-
-