Class GapBorder
- java.lang.Object
-
- org.eclipse.nebula.paperclips.core.border.GapBorder
-
-
Field Summary
Fields Modifier and Type Field Description intbottomThe bottom gap of a closed border, expressed in points.intleftThe left side gap, expressed in points.intopenBottomThe bottom gap of an open border, expressed in points.intopenTopThe top gap of an open border, expressed in points.intrightThe right side gap, expressed in points.inttopThe top gap of a closed border, expressed in points.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intcheckGap(int gap)BorderPaintercreatePainter(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)Creates a BorderPainter which uses the given Device and GC.booleanequals(java.lang.Object obj)inthashCode()voidsetGap(int gap)Sets the left, right, closed top and closed bottom gaps to he argument.
-
-
-
Field Detail
-
top
public int top
The top gap of a closed border, expressed in points.
-
bottom
public int bottom
The bottom gap of a closed border, expressed in points.
-
left
public int left
The left side gap, expressed in points.
-
right
public int right
The right side gap, expressed in points.
-
openTop
public int openTop
The top gap of an open border, expressed in points.
-
openBottom
public int openBottom
The bottom gap of an open border, expressed in points.
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
setGap
public void setGap(int gap)
Sets the left, right, closed top and closed bottom gaps to he argument.- Parameters:
gap- the gap, expressed in points.
-
checkGap
int checkGap(int gap)
-
createPainter
public BorderPainter createPainter(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Description copied from interface:BorderCreates a BorderPainter which uses the given Device and GC.- Specified by:
createPainterin interfaceBorder- Parameters:
device- the print device.gc- a GC for drawing to the print device.- Returns:
- a BorderPainter for painting the border on the given Device and GC.
-
-