Constructor | Description |
---|---|
LineBorder() |
Constructs a LineBorder with a black border and 5-pt insets.
|
LineBorder(org.eclipse.swt.graphics.RGB rgb) |
Constructs a LineBorder with 5-pt insets.
|
Modifier and Type | Method | Description |
---|---|---|
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 |
getGapSize() |
Returns the size of the gap between the line border and the target print,
expressed in points.
|
int |
getLineWidth() |
Returns the line width of the border, expressed in points.
|
org.eclipse.swt.graphics.RGB |
getRGB() |
Returns the border color.
|
int |
hashCode() |
|
void |
setGapSize(int points) |
Sets the size of the gap between the line border and the target print.
|
void |
setLineWidth(int points) |
Sets the line width to the argument.
|
void |
setRGB(org.eclipse.swt.graphics.RGB rgb) |
Sets the border color to the argument.
|
public LineBorder()
public LineBorder(org.eclipse.swt.graphics.RGB rgb)
rgb
- the color to use for the border.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setRGB(org.eclipse.swt.graphics.RGB rgb)
rgb
- the new border color.public org.eclipse.swt.graphics.RGB getRGB()
public void setLineWidth(int points)
points
- the line width, in points.public int getLineWidth()
public void setGapSize(int points)
points
- the gap size, expressed in points.public int getGapSize()
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.