Class BackgroundPrint
- java.lang.Object
-
- org.eclipse.nebula.paperclips.core.BackgroundPrint
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.graphics.RGBbackground(package private) Printtarget
-
Constructor Summary
Constructors Constructor Description BackgroundPrint(Print target, org.eclipse.swt.graphics.RGB background)Constructs a BackgroundPrint with the given target and background color.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)org.eclipse.swt.graphics.RGBgetBackground()Returns the background color.PrintgetTarget()Returns the wrapped print to which the background color is being applied.inthashCode()PrintIteratoriterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)Returns a PrintIterator for laying out the contents of this Print.voidsetBackground(org.eclipse.swt.graphics.RGB background)Sets the background color.
-
-
-
Field Detail
-
target
Print target
-
background
org.eclipse.swt.graphics.RGB background
-
-
Constructor Detail
-
BackgroundPrint
public BackgroundPrint(Print target, org.eclipse.swt.graphics.RGB background)
Constructs a BackgroundPrint with the given target and background color.- Parameters:
target- thebackground-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getTarget
public Print getTarget()
Returns the wrapped print to which the background color is being applied.- Returns:
- the wrapped print to which the background color is being applied.
-
getBackground
public org.eclipse.swt.graphics.RGB getBackground()
Returns the background color.- Returns:
- the background color.
-
setBackground
public void setBackground(org.eclipse.swt.graphics.RGB background)
Sets the background color.- Parameters:
background- the new background color.
-
iterator
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Description copied from interface:PrintReturns a PrintIterator for laying out the contents of this Print. The iterator uses a snapshot of the print at the time this method is invoked, so subsequent changes to the Print will not affect the output of the iterator.
-
-