|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.paperclips.BackgroundPrint
public class BackgroundPrint
A decorator that paints a background color behind it's target.
| Constructor Summary | |
|---|---|
BackgroundPrint(Print target,
org.eclipse.swt.graphics.RGB background)
Constructs a BackgroundPrint with the given target and background color. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
org.eclipse.swt.graphics.RGB |
getBackground()
Returns the background color. |
Print |
getTarget()
Returns the wrapped print to which the background color is being applied. |
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 |
setBackground(org.eclipse.swt.graphics.RGB background)
Sets the background color. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BackgroundPrint(Print target,
org.eclipse.swt.graphics.RGB background)
target - thebackground - | Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Print getTarget()
public org.eclipse.swt.graphics.RGB getBackground()
public void setBackground(org.eclipse.swt.graphics.RGB background)
background - the new background color.
public PrintIterator iterator(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc)
Print
iterator in interface Printdevice - 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 | ||||||||