Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.swt.graphics.RGB |
background |
(package private) Print |
target |
Constructor and Description |
---|
BackgroundPrint(Print target,
org.eclipse.swt.graphics.RGB background)
Constructs a BackgroundPrint with the given target and background color.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Print target
org.eclipse.swt.graphics.RGB background
public BackgroundPrint(Print target, org.eclipse.swt.graphics.RGB background)
target
- thebackground
- public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public 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