cz.cuni.jagrlib
Class VCommand.MoveTo

java.lang.Object
  extended by cz.cuni.jagrlib.VectorCommand
      extended by cz.cuni.jagrlib.VCommand.MoveTo
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
VCommand.ArcTo, VCommand.CubicCurveTo, VCommand.LineTo
Enclosing class:
VCommand

public class VCommand.MoveTo
extends VectorCommand

Moves current point to the given coordinate.

Since:
0.02
See Also:
VCommand.java, VCommand.LineTo, VectorGraphics.moveTo(double, double), Serialized Form

Field Summary
 double x
          X coordinate.
 double y
          Y coordinate.
 
Fields inherited from class cz.cuni.jagrlib.VectorCommand
FILL_CALLBACK, FILL_DUMMY, FILL_HATCHL, FILL_HATCHR, FILL_SOLID, LINE_CALLBACK, LINE_DASH, LINE_DASHDOT, LINE_DOT, LINE_DUMMY, LINE_SOLID
 
Constructor Summary
VCommand.MoveTo(double _x, double _y)
          Initializing constructor.
 
Method Summary
 void execute(VectorGraphics out)
          Executes the command on the given VectorGraphics interface.
 java.lang.String toString()
           
 void transform(java.awt.geom.AffineTransform t)
          Transforms the command using the given AffineTransform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x
X coordinate.


y

public double y
Y coordinate.

Constructor Detail

VCommand.MoveTo

public VCommand.MoveTo(double _x,
                       double _y)
Initializing constructor.

Parameters:
_x - X coordinate.
_y - Y coordinate.
Method Detail

transform

public void transform(java.awt.geom.AffineTransform t)
Transforms the command using the given AffineTransform.

Overrides:
transform in class VectorCommand
Parameters:
t - Affine transformation (3x2 matrix of doubles) or null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

execute

public void execute(VectorGraphics out)
             throws BadInterfaceException
Executes the command on the given VectorGraphics interface.

Overrides:
execute in class VectorCommand
Parameters:
out - Output vector interface.
Throws:
BadInterfaceException
See Also:
VectorGraphics