cz.cuni.jagrlib
Class VCommand.CubicCurveTo

java.lang.Object
  extended by cz.cuni.jagrlib.VectorCommand
      extended by cz.cuni.jagrlib.VCommand.MoveTo
          extended by cz.cuni.jagrlib.VCommand.CubicCurveTo
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
VCommand

public class VCommand.CubicCurveTo
extends VCommand.MoveTo

Draw a cubic Bezier curve from the current point.

Since:
0.02
See Also:
VCommand.java, VCommand.MoveTo, VectorGraphics.cubicCurveTo(double, double, double, double, double, double), Serialized Form

Field Summary
 double x2
          X coordinate of the third control point (X2).
 double x3
          X coordinate of the fourth control point = curve end (X3).
 double y2
          Y coordinate of the third control point (Y2).
 double y3
          Y coordinate of the fourth control point = curve end (Y3).
 
Fields inherited from class cz.cuni.jagrlib.VCommand.MoveTo
x, y
 
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.CubicCurveTo(double _x1, double _y1, double _x2, double _y2, double _x3, double _y3)
          Initializing constructor.
 
Method Summary
 void execute(VectorGraphics out)
          Executes the command on the given VectorGraphics interface.
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.jagrlib.VCommand.MoveTo
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x2

public double x2
X coordinate of the third control point (X2).


y2

public double y2
Y coordinate of the third control point (Y2).


x3

public double x3
X coordinate of the fourth control point = curve end (X3).


y3

public double y3
Y coordinate of the fourth control point = curve end (Y3).

Constructor Detail

VCommand.CubicCurveTo

public VCommand.CubicCurveTo(double _x1,
                             double _y1,
                             double _x2,
                             double _y2,
                             double _x3,
                             double _y3)
Initializing constructor.

Parameters:
_x1 - X coordinate of the 2nd control point.
_y1 - Y coordinate of the 2nd control point.
_x2 - X coordinate of the 3rd control point.
_y2 - Y coordinate of the 3rd control point.
_x3 - X coordinate of the 4th control point.
_y3 - Y coordinate of the 4th control point.
Method Detail

toString

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

execute

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

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