cz.cuni.jagrlib
Class VectorCommand

java.lang.Object
  extended by cz.cuni.jagrlib.VectorCommand
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
VCommand, VCommand.Clip, VCommand.ClosePath, VCommand.CreateFont, VCommand.DrawText, VCommand.Fill, VCommand.FontOrientation, VCommand.GetFont, VCommand.MoveTo, VCommand.NewPath, VCommand.PopPath, VCommand.PushPath, VCommand.PutFont, VCommand.SetColor, VCommand.SetFillCallback, VCommand.SetFillStyle, VCommand.SetLineCallback, VCommand.SetLineStyle, VCommand.SetLineWidth, VCommand.Stroke, VCommand.TextPath

public abstract class VectorCommand
extends java.lang.Object
implements java.io.Serializable

Abstract VectorGraphics command - represents one atomic command which is consumed by vector graphics interpreters.

Since:
0.02
See Also:
VectorCommand.java, interface VectorGraphics, Serialized Form

Field Summary
 int FILL_CALLBACK
          Callback fill style.
 int FILL_DUMMY
          Dummy fill style (no drawing is actually done).
 int FILL_HATCHL
          \-Hatched fill style (angle = -45 degrees).
 int FILL_HATCHR
          /-Hatched fill style (angle = 45 degrees).
 int FILL_SOLID
          Solid fill style.
 int LINE_CALLBACK
          Callback line style.
 int LINE_DASH
          Dashed line style (length(dash) = length(gap)).
 int LINE_DASHDOT
          Dash-dotted line style ("dot-gap-dash-gap" pattern).
 int LINE_DOT
          Dotted line style (length(dot) = length(gap)/4).
 int LINE_DUMMY
          Dummy line style (no drawing is actually done).
 int LINE_SOLID
          Solid line style (continuous line).
 
Constructor Summary
VectorCommand()
           
 
Method Summary
 void execute(VectorGraphics out)
          Executes the command on the given VectorGraphics interface.
 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, toString, wait, wait, wait
 

Field Detail

LINE_DUMMY

public final int LINE_DUMMY
Dummy line style (no drawing is actually done).

See Also:
Constant Field Values

LINE_CALLBACK

public final int LINE_CALLBACK
Callback line style.

See Also:
VCommand.SetLineStyle, VectorGraphics.setLineCallback(cz.cuni.jagrlib.iface.StrokeCallback), Constant Field Values

LINE_SOLID

public final int LINE_SOLID
Solid line style (continuous line).

See Also:
Constant Field Values

LINE_DASH

public final int LINE_DASH
Dashed line style (length(dash) = length(gap)).

See Also:
Constant Field Values

LINE_DOT

public final int LINE_DOT
Dotted line style (length(dot) = length(gap)/4).

See Also:
Constant Field Values

LINE_DASHDOT

public final int LINE_DASHDOT
Dash-dotted line style ("dot-gap-dash-gap" pattern).

See Also:
Constant Field Values

FILL_DUMMY

public final int FILL_DUMMY
Dummy fill style (no drawing is actually done).

See Also:
Constant Field Values

FILL_CALLBACK

public final int FILL_CALLBACK
Callback fill style.

See Also:
VCommand.SetFillStyle, VectorGraphics.setFillCallback(cz.cuni.jagrlib.iface.FillCallback), Constant Field Values

FILL_SOLID

public final int FILL_SOLID
Solid fill style.

See Also:
Constant Field Values

FILL_HATCHR

public final int FILL_HATCHR
/-Hatched fill style (angle = 45 degrees).

See Also:
Constant Field Values

FILL_HATCHL

public final int FILL_HATCHL
\-Hatched fill style (angle = -45 degrees).

See Also:
Constant Field Values
Constructor Detail

VectorCommand

public VectorCommand()
Method Detail

transform

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

Parameters:
t - Affine transformation (3x2 matrix of doubles) or null.

execute

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

Parameters:
out - Output vector interface.
Throws:
BadInterfaceException
See Also:
VectorGraphics