Modifier and Type | Field and Description |
---|---|
int |
bottom
The bottom gap of a closed border, expressed in points.
|
int |
left
The left side gap, expressed in points.
|
int |
openBottom
The bottom gap of an open border, expressed in points.
|
int |
openTop
The top gap of an open border, expressed in points.
|
int |
right
The right side gap, expressed in points.
|
int |
top
The top gap of a closed border, expressed in points.
|
Constructor and Description |
---|
GapBorder()
Constructs a GapBorder with 0 gap around all sides.
|
GapBorder(int gap)
Constructs a GapBorder with the given gap around all sides.
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
checkGap(int gap) |
BorderPainter |
createPainter(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc)
Creates a BorderPainter which uses the given Device and GC.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
setGap(int gap)
Sets the left, right, closed top and closed bottom gaps to he argument.
|
public int top
public int bottom
public int left
public int right
public int openTop
public int openBottom
public GapBorder()
public GapBorder(int gap)
gap
- the gap, expressed in points.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setGap(int gap)
gap
- the gap, expressed in points.int checkGap(int gap)
public BorderPainter createPainter(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Border
createPainter
in interface Border
device
- the print device.gc
- a GC for drawing to the print device.