|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractCommand
net.refractions.udig.project.ui.commands.AbstractDrawCommand
public abstract class AbstractDrawCommand
Abstract super class of commands that simply draw on the acetate layer. The top-most layer. The graphics object will be set just prior to the execution of the command and is used to execute draw commands. Subclasses do not need to be concerned about resetting the graphics2D because the RenderManager, which executes the command will handle the issue.
Field Summary | |
---|---|
protected ViewportPane |
display
|
protected ViewportGraphics |
graphics
The graphics object will be set just prior to the execution of the command and is used to execute draw commands. |
Constructor Summary | |
---|---|
AbstractDrawCommand()
|
Method Summary | |
---|---|
void |
dispose()
Disposes of any resources that need to be disposed of. |
java.lang.String |
getName()
|
boolean |
isValid()
Returns whether the current command should be drawn. |
void |
setGraphics(ViewportGraphics graphics,
IMapDisplay display)
Sets the graphics2D that this command will draw on. |
void |
setValid(boolean valid)
Sets whether the current command should be drawn. |
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.project.ui.commands.IDrawCommand |
---|
getValidArea |
Field Detail |
---|
protected ViewportGraphics graphics
protected ViewportPane display
Constructor Detail |
---|
public AbstractDrawCommand()
Method Detail |
---|
public void setGraphics(ViewportGraphics graphics, IMapDisplay display)
IDrawCommand
setGraphics
in interface IDrawCommand
graphics
- the graphics2D that this command will draw ondisplay
- The display area that will be draw on.net.refractions.udig.project.internal.commands.draw.IDrawCommand#setGraphics(net.refractions.udig.project.render.ViewportGraphics,
net.refractions.udig.project.render.MapDisplay)
public void setValid(boolean valid)
IDrawCommand
setValid
in interface IDrawCommand
valid
- true if the command should be drawn.IDrawCommand.setValid(boolean)
public boolean isValid()
IDrawCommand
isValid
in interface IDrawCommand
IDrawCommand.isValid()
public java.lang.String getName()
public void dispose()
IDrawCommand
dispose
in interface IDrawCommand
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |