|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.printing.model.AbstractBoxPrinter
public abstract class AbstractBoxPrinter
Provides simple/stupid implementation for the optional methods in BoxPrinter.
Nothing is saved when save is called. So everything must be hard coded. Preview simply calls draw() and only does so once.
Constructor Summary | |
---|---|
AbstractBoxPrinter()
|
Method Summary | |
---|---|
void |
createPreview(java.awt.Graphics2D graphics,
IProgressMonitor monitor)
By default this method calls draw and sets dirty to be false. |
Box |
getBox()
Returns the box the box set when the setBox method is called. |
boolean |
isNewPreviewNeeded()
By default this will return false when ever the size of location of the box has been changed. |
void |
load(IMemento memento)
By default this method does nothing |
void |
save(IMemento memento)
By default this method does nothing |
void |
setBox(Box box2)
Sets the owning box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.refractions.udig.printing.model.BoxPrinter |
---|
draw, getExtensionPointID |
Constructor Detail |
---|
public AbstractBoxPrinter()
Method Detail |
---|
public void save(IMemento memento)
save
in interface BoxPrinter
AbstractBox
public void load(IMemento memento)
load
in interface BoxPrinter
memento
- the new value of the 'IMemento' attribute.BoxPrinter.save(IMemento)
public void createPreview(java.awt.Graphics2D graphics, IProgressMonitor monitor)
createPreview
in interface BoxPrinter
graphics
- A Graphics2D
object to perform the drawing on.public boolean isNewPreviewNeeded()
isNewPreviewNeeded
in interface BoxPrinter
BoxPrinter.createPreview(Graphics2D, IProgressMonitor)
public Box getBox()
BoxPrinter
getBox
in interface BoxPrinter
public void setBox(Box box2)
BoxPrinter
setBox
in interface BoxPrinter
box2
- The box that owns this BoxPrinter.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |