Constructor and Description |
---|
BackgroundPrint(Print target,
RGB background)
Constructs a BackgroundPrint with the given target and background color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
RGB |
getBackground()
Returns the background color.
|
Print |
getTarget()
Returns the wrapped print to which the background color is being applied.
|
int |
hashCode() |
PrintIterator |
iterator(Device device,
GC gc)
Returns a PrintIterator for laying out the contents of this Print.
|
void |
setBackground(RGB background)
Sets the background color.
|
public BackgroundPrint(Print target, 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 RGB getBackground()
public void setBackground(RGB background)
background
- the new background color.public PrintIterator iterator(Device device, GC gc)
Print