Package org.jcsp.awt

Class GraphicsCommand

java.lang.Object
org.jcsp.lang.TaggedProtocol
org.jcsp.awt.GraphicsCommand
Direct Known Subclasses:
GraphicsCommand.ClearRect, GraphicsCommand.ClipRect, GraphicsCommand.CopyArea, GraphicsCommand.Draw3DRect, GraphicsCommand.DrawArc, GraphicsCommand.DrawBytes, GraphicsCommand.DrawChars, GraphicsCommand.DrawImage, GraphicsCommand.DrawLine, GraphicsCommand.DrawOval, GraphicsCommand.DrawPolygon, GraphicsCommand.DrawPolyline, GraphicsCommand.DrawRect, GraphicsCommand.DrawRoundRect, GraphicsCommand.DrawString, GraphicsCommand.Fill3DRect, GraphicsCommand.FillArc, GraphicsCommand.FillOval, GraphicsCommand.FillPolygon, GraphicsCommand.FillRect, GraphicsCommand.FillRoundRect, GraphicsCommand.General, GraphicsCommand.Null, GraphicsCommand.SetClip, GraphicsCommand.SetColor, GraphicsCommand.SetFont, GraphicsCommand.SetPaintMode, GraphicsCommand.SetXORMode, GraphicsCommand.Translate

public abstract class GraphicsCommand extends TaggedProtocol
This is the tagged protocol interpreted by objects (such as DisplayList) that implement the Display interface.

Description

GraphicsCommand is the TaggedProtocol interpreted by objects (such as DisplayList) that implement the Display interface. It is a collection of static graphics command classes and a couple of immutable graphics command objects. The constructors for each command class set the parameters for the command. The immutable objects are commands that take no parameters.

A Display object provides a secure interface between an active user process and an active graphics component (such as ActiveCanvas). It enables all methods of java.awt.graphics to be executed on the active graphics component. User processes send an array of GraphicsCommands by invoking set, extend or change on the Display.

The meaning of each command is defined by the corresponding method in java.awt.graphics. For example, the GraphicsCommand.DrawImage constructors correspond to the java.awt.graphics.drawImage methods.

See Also: