|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.LinePrint
public class LinePrint
A Print for drawing horizontal and vertical lines.
LinePrints are either horizontally or vertically greedy, according to the orientation of the line. Greedy prints take up all the available space on the page.
Constructor Summary | |
---|---|
LinePrint()
Constructs a horizontal LinePrint. |
|
LinePrint(int orientation)
Constructs a LinePrint with the given orientation and 1-point thickness. |
|
LinePrint(int orientation,
double thickness)
Constructs a LinePrint with the given orientation and thickness. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getOrientation()
Returns the line orientation (one of SWT.HORIZONTAL or
SWT.VERTICAL ). |
org.eclipse.swt.graphics.RGB |
getRGB()
Returns the line color. |
double |
getThickness()
Returns the line thickness, in points. |
int |
hashCode()
|
PrintIterator |
iterator(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc)
Returns a PrintIterator for laying out the contents of this Print. |
void |
setRGB(org.eclipse.swt.graphics.RGB foreground)
Sets the line color to the argument. |
void |
setThickness(double thickness)
Sets the line thickness, in points. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinePrint()
public LinePrint(int orientation)
orientation
- one of SWT#HORIZONTAL or SWT#VERTICAL.public LinePrint(int orientation, double thickness)
orientation
- one of SWT#HORIZONTAL or SWT#VERTICAL.thickness
- the line thickness, 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 int getOrientation()
SWT.HORIZONTAL
or
SWT.VERTICAL
).
public double getThickness()
public void setThickness(double thickness)
thickness
- the line thickness, in points.public void setRGB(org.eclipse.swt.graphics.RGB foreground)
foreground
- the new line color.public org.eclipse.swt.graphics.RGB getRGB()
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Print
iterator
in interface Print
device
- the graphics device this Print will be drawn onto.gc
- the graphics context to be used for calculating layout and
drawing the Print's contents.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |