|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.GapBorder
public class GapBorder
A border which leaves a gap around the target Print.
Field Summary | |
---|---|
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 Summary | |
---|---|
GapBorder()
Constructs a GapBorder with 0 gap around all sides. |
|
GapBorder(int gap)
Constructs a GapBorder with the given gap around all sides. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int top
public int bottom
public int left
public int right
public int openTop
public int openBottom
Constructor Detail |
---|
public GapBorder()
public GapBorder(int gap)
gap
- the gap, expressed in points.Method Detail |
---|
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.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |