net.refractions.udig.project.command
Class NavigationCommandFactory

java.lang.Object
  extended by net.refractions.udig.project.command.NavigationCommandFactory
Direct Known Subclasses:
NavigationCommandFactory

Deprecated.

public class NavigationCommandFactory
extends java.lang.Object

API comment me TODO provide type description

Since:
TODO provide version
Author:
jeichar

Constructor Summary
protected NavigationCommandFactory()
          Deprecated.  
 
Method Summary
 NavCommand createCompositeCommand(NavCommand[] commands)
          Deprecated. Creates a new NavComposite
 NavCommand createPanCommandUsingScreenCoords(int xpixels, int ypixels)
          Deprecated. Creates a new PanCommandPans the viewport in terms of pixels on the screen.
 NavCommand createPanCommandUsingWorldCoords(double x, double y)
          Deprecated. Creates a new PanCommand
 NavCommand createSetViewportBBoxCommand(Envelope newbbox)
          Deprecated. Creates a new SetViewportBBoxCommand
 NavCommand createSetViewportBBoxCommand(Envelope bounds, CoordinateReferenceSystem crs)
          Deprecated.  
 NavCommand createSetViewportCenterCommand(Coordinate center)
          Deprecated. Creates a new SetViewportCenterCommand
 NavCommand createSetViewportHeight(double height)
          Deprecated. Creates a new SetViewportHeight
 NavCommand createSetViewportWidth(double width)
          Deprecated. Creates a new SetViewportWidth
 NavCommand createZoomCommand(double zoomfactor)
          Deprecated. Creates a new ZoomCommand
 NavCommand createZoomExtentCommand()
          Deprecated. Creates a new ZoomExtentCommand
static NavigationCommandFactory getInstance()
          Deprecated. Creates a new NavigationCommandFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationCommandFactory

protected NavigationCommandFactory()
Deprecated. 
Method Detail

getInstance

public static NavigationCommandFactory getInstance()
Deprecated. 
Creates a new NavigationCommandFactory object

Returns:
a new NavigationCommandFactory object

createCompositeCommand

public NavCommand createCompositeCommand(NavCommand[] commands)
Deprecated. 
Creates a new NavComposite

Parameters:
commands - an array of commands to execute as a simgle command. The array will be executed from position 0 to position length-1 in order.
Returns:
a new NavComposite object
See Also:
NavCommand

createSetViewportBBoxCommand

public NavCommand createSetViewportBBoxCommand(Envelope newbbox)
Deprecated. 
Creates a new SetViewportBBoxCommand

Parameters:
newbbox - the new bounding box to set in the viewport
Returns:
a new SetViewportBBoxCommand object
See Also:
NavCommand, Envelope

createZoomCommand

public NavCommand createZoomCommand(double zoomfactor)
Deprecated. 
Creates a new ZoomCommand

Parameters:
zoomfactor - the amount to zoom
Returns:
a new ZoomCommand object
See Also:
NavCommand

createZoomExtentCommand

public NavCommand createZoomExtentCommand()
Deprecated. 
Creates a new ZoomExtentCommand

Returns:
a new ZoomExtentCommand object
See Also:
NavCommand

createSetViewportCenterCommand

public NavCommand createSetViewportCenterCommand(Coordinate center)
Deprecated. 
Creates a new SetViewportCenterCommand

Parameters:
center - Sets the center of the viewport. The Coordinate must be in world coordinates.
Returns:
a new SetViewportCenterCommand object
See Also:
NavCommand, Coordinate

createSetViewportHeight

public NavCommand createSetViewportHeight(double height)
Deprecated. 
Creates a new SetViewportHeight

Parameters:
height - The new viewport height
Returns:
a new SetViewportHeight object
See Also:
NavCommand

createSetViewportWidth

public NavCommand createSetViewportWidth(double width)
Deprecated. 
Creates a new SetViewportWidth

Parameters:
width - the new viewport width
Returns:
a new SetViewportWidth object
See Also:
NavCommand

createPanCommandUsingScreenCoords

public NavCommand createPanCommandUsingScreenCoords(int xpixels,
                                                    int ypixels)
Deprecated. 
Creates a new PanCommandPans the viewport in terms of pixels on the screen. Each pixel represents a distance in world coordinates, the x and y distances differ, so a pan of 8 pixels in the x direction will be translated to a pan of 8*xdistance in the world.

Parameters:
xpixels - The amount, in pixels, to pan in the x direction
ypixels - The amount, in pixels, to pan in the y direction
Returns:
a new PanCommand object
See Also:
NavCommand

createPanCommandUsingWorldCoords

public NavCommand createPanCommandUsingWorldCoords(double x,
                                                   double y)
Deprecated. 
Creates a new PanCommand

Parameters:
x - The amount, in world coordinates, to pan in the x direction
y - The amount, in world coordinates, to pan in the y direction
Returns:
a new PanCommand object
See Also:
NavCommand

createSetViewportBBoxCommand

public NavCommand createSetViewportBBoxCommand(Envelope bounds,
                                               CoordinateReferenceSystem crs)
Deprecated.