public class PanInstruction extends Object implements Instruction
Instruction
which instructs the executor to pan the view to a specific point.
Note
If it is desired to pan and zoom, the order of the PanInstruction
and
ZoomInstruction
inside the InstructionChain
might be relevant.
Constructor and Description |
---|
PanInstruction(Point2D panPoint)
Creates a new
PanInstruction for the given pan point. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Point2D |
getPanPoint()
Returns the point to pan to.
|
String |
getType() |
int |
hashCode() |
String |
toString() |
public static final String TYPE
public PanInstruction(Point2D panPoint)
PanInstruction
for the given pan point. The point is expected to provide
screen coordinates in Document units.panPoint
- the point to pan topublic Point2D getPanPoint()
public String getType()
getType
in interface Instruction
Copyright © 2024 levigo holding gmbh. All rights reserved.