|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.ui.commands.DrawCommandFactory
public class DrawCommandFactory
Creates draw commands.
Method Summary | |
---|---|
IDrawCommand |
createCompositeDrawCommand(IDrawCommand[] commandsArray)
Creates a new CompositeDrawCommand |
IDrawCommand |
createCompositeDrawCommand(java.util.List<? extends IDrawCommand> commandsList)
Creates a new CompositeDrawCommand |
DrawFeatureCommand |
createDrawFeatureCommand(SimpleFeature feature)
Creates a new DrawFeatureCommand |
DrawFeatureCommand |
createDrawFeatureCommand(SimpleFeature feature,
ILayer layer)
Creates a new DrawFeatureCommand |
DrawShapeCommand |
createDrawShapeCommand(java.awt.Shape shape)
Creates a new DrawShapeCommand |
DrawShapeCommand |
createDrawShapeCommand(java.awt.Shape shape,
java.awt.Color paint)
Creates a new DrawShapeCommand |
DrawShapeCommand |
createDrawShapeCommand(java.awt.Shape shape,
java.awt.Color paint,
int lineStyle,
int lineWidth)
Creates a new DrawShapeCommand |
IDrawCommand |
createEditFeaturesCommand(IViewportModel model)
Creates a new DrawEditFeatureCommand |
UndoableMapCommand |
createStartAnimationCommand(IMapDisplay display,
java.util.List<IAnimation> animations)
Creates a new StartAnimationCommand |
UndoableMapCommand |
createStopAnimationCommand(IMapDisplay display,
java.util.List<IAnimation> animations)
Creates a new StartAnimationCommand |
TranslateCommand |
createTranslateCommand(int x,
int y)
Creates a new TranslateCommand |
TranslateCommand |
createTranslateCommand(java.awt.Point offset)
Creates a new TranslateCommand |
ZoomDrawCommand |
createZoomDrawCommand(int centerx,
int centery,
double amount)
Creates a new TranslateCommand |
static DrawCommandFactory |
getInstance()
Creates a new DrawCommandFactory object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DrawCommandFactory getInstance()
public DrawShapeCommand createDrawShapeCommand(java.awt.Shape shape, java.awt.Color paint, int lineStyle, int lineWidth)
shape
- The shape to drawpaint
- the shape outline colorlineStyle
- see ViewportGraphics for line styleslineWidth
- The width of the shape outline
DrawShapeCommand
public DrawShapeCommand createDrawShapeCommand(java.awt.Shape shape, java.awt.Color paint)
shape
- paint
-
DrawShapeCommand
public DrawShapeCommand createDrawShapeCommand(java.awt.Shape shape)
shape
-
public IDrawCommand createEditFeaturesCommand(IViewportModel model)
model
- The viewport model associated with the viewport that will be rendered to.
DrawEditFeatureCommand
public TranslateCommand createTranslateCommand(java.awt.Point offset)
offset
- The amount of translation
TranslateCommand
public TranslateCommand createTranslateCommand(int x, int y)
x
- the amount of y translationy
- the amount of y translation
TranslateCommand
public ZoomDrawCommand createZoomDrawCommand(int centerx, int centery, double amount)
x
- the amount of y translationy
- the amount of y translation
ZoomDrawCommand
public DrawFeatureCommand createDrawFeatureCommand(SimpleFeature feature, ILayer layer)
feature
- the feature to drawlayer
- the layer that the feature is part of.model
- the ViewportModel that is used to calculate size and position.
DrawFeatureCommand
public DrawFeatureCommand createDrawFeatureCommand(SimpleFeature feature)
feature
- the feature to drawevaluationObject
- the layer that the feature is part of.model
- the ViewportModel that is used to calculate size and position.
DrawFeatureCommand
public UndoableMapCommand createStartAnimationCommand(IMapDisplay display, java.util.List<IAnimation> animations)
StartAnimationCommand
public UndoableMapCommand createStopAnimationCommand(IMapDisplay display, java.util.List<IAnimation> animations)
StartAnimationCommand
public IDrawCommand createCompositeDrawCommand(IDrawCommand[] commandsArray)
commandsArray
-
public IDrawCommand createCompositeDrawCommand(java.util.List<? extends IDrawCommand> commandsList)
commandsList
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |