|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.paperclips.LineBorder
public class LineBorder
A border that draws a rectangle around a print.
| Constructor Summary | |
|---|---|
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. |
|
| 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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineBorder()
public LineBorder(org.eclipse.swt.graphics.RGB rgb)
rgb - the color to use for the border.| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic 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 Borderdevice - 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 | ||||||||