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.SetClip,GraphicsCommand.SetColor,GraphicsCommand.SetFont,GraphicsCommand.SetXORMode,GraphicsCommand.Translate
public abstract class GraphicsCommand extends TaggedProtocol
This is the tagged protocol interpreted by objects (such asDisplayList) that implement theDisplayinterface.Description
GraphicsCommand is theTaggedProtocolinterpreted by objects (such asDisplayList) that implement theDisplayinterface. 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 invokingset,extendorchangeon the Display.The meaning of each command is defined by the corresponding method in java.awt.graphics. For example, the
GraphicsCommand.DrawImageconstructors correspond to the java.awt.graphics.drawImage methods.- Author:
- P.H. Welch
- See Also:
Display,DisplayList,ActiveCanvas,TaggedProtocol
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphicsCommand.ClearRectThis is the (immutable) command object forjava.awt.Graphics.clearRect.static classGraphicsCommand.ClipRectThis is the (immutable) command object forjava.awt.Graphics.clipRect.static classGraphicsCommand.CopyAreaThis is the (immutable) command object forjava.awt.Graphics.copyArea.static classGraphicsCommand.Draw3DRectThis is the (immutable) command object forjava.awt.Graphics.draw3DRect.static classGraphicsCommand.DrawArcThis is the (immutable) command object forjava.awt.Graphics.drawArc.static classGraphicsCommand.DrawBytesThis is the (immutable) command object forjava.awt.Graphics.drawBytes.static classGraphicsCommand.DrawCharsThis is the (immutable) command object forjava.awt.Graphics.drawChars.static classGraphicsCommand.DrawImageThis is the (immutable) command object forjava.awt.Graphics.drawImage.static classGraphicsCommand.DrawLineThis is the (immutable) command object forjava.awt.Graphics.drawLine.static classGraphicsCommand.DrawOvalThis is the (immutable) command object forjava.awt.Graphics.drawOval.static classGraphicsCommand.DrawPolygonThis is the (immutable) command object forjava.awt.Graphics.drawPolygon.static classGraphicsCommand.DrawPolylineThis is the (immutable) command object forjava.awt.Graphics.drawPolyline.static classGraphicsCommand.DrawRectThis is the (immutable) command object forjava.awt.Graphics.drawRect.static classGraphicsCommand.DrawRoundRectThis is the (immutable) command object forjava.awt.Graphics.drawRoundRect.static classGraphicsCommand.DrawStringThis is the (immutable) command object forjava.awt.Graphics.drawString.static classGraphicsCommand.Fill3DRectThis is the (immutable) command object forjava.awt.Graphics.translate.static classGraphicsCommand.FillArcThis is the (immutable) command object forjava.awt.Graphics.fillArc.static classGraphicsCommand.FillOvalThis is the (immutable) command object forjava.awt.Graphics.fillOval.static classGraphicsCommand.FillPolygonThis is the (immutable) command object forjava.awt.Graphics.fillPolygon.static classGraphicsCommand.FillRectThis is the (immutable) command object forjava.awt.Graphics.fillRect.static classGraphicsCommand.FillRoundRectThis is the (immutable) command object forjava.awt.Graphics.fillRoundRect.static classGraphicsCommand.GeneralThis is the command object holding aGraphicsCommand.Graphicobject implementing an arbitrary set of graphics operations.static interfaceGraphicsCommand.Graphicstatic classGraphicsCommand.SetClipThis is the (immutable) command object forjava.awt.Graphics.setClip.static classGraphicsCommand.SetColorThis is the (immutable) command object forjava.awt.Graphics.setColor.static classGraphicsCommand.SetFontThis is the (immutable) command object forjava.awt.Graphics.setFont.static classGraphicsCommand.SetXORModeThis is the (immutable) command object forjava.awt.Graphics.setXORMode.static classGraphicsCommand.TranslateThis is the (immutable) command object forjava.awt.Graphics.translate.
-
Field Summary
Fields Modifier and Type Field Description static GraphicsCommandNULLThis is the null command whose interpretation is a no-op.static GraphicsCommandSET_PAINT_MODEThis is the (immutable) command object forjava.awt.Graphics.setPaintMode.-
Fields inherited from class org.jcsp.lang.TaggedProtocol
tag
-
-
-
-
Field Detail
-
NULL
public static final GraphicsCommand NULL
This is the null command whose interpretation is a no-op.
-
SET_PAINT_MODE
public static final GraphicsCommand SET_PAINT_MODE
This is the (immutable) command object forjava.awt.Graphics.setPaintMode.
-
-