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 asDisplayList
) that implement theDisplay
interface.Description
GraphicsCommand is theTaggedProtocol
interpreted by objects (such asDisplayList
) that implement theDisplay
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 invokingset
,extend
orchange
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:
Display
,DisplayList
,ActiveCanvas
,TaggedProtocol
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphicsCommand.ClearRect
This is the (immutable) command object forjava.awt.Graphics.clearRect
.static class
GraphicsCommand.ClipRect
This is the (immutable) command object forjava.awt.Graphics.clipRect
.static class
GraphicsCommand.CopyArea
This is the (immutable) command object forjava.awt.Graphics.copyArea
.static class
GraphicsCommand.Draw3DRect
This is the (immutable) command object forjava.awt.Graphics.draw3DRect
.static class
GraphicsCommand.DrawArc
This is the (immutable) command object forjava.awt.Graphics.drawArc
.static class
GraphicsCommand.DrawBytes
This is the (immutable) command object forjava.awt.Graphics.drawBytes
.static class
GraphicsCommand.DrawChars
This is the (immutable) command object forjava.awt.Graphics.drawChars
.static class
GraphicsCommand.DrawImage
This is the (immutable) command object forjava.awt.Graphics.drawImage
.static class
GraphicsCommand.DrawLine
This is the (immutable) command object forjava.awt.Graphics.drawLine
.static class
GraphicsCommand.DrawOval
This is the (immutable) command object forjava.awt.Graphics.drawOval
.static class
GraphicsCommand.DrawPolygon
This is the (immutable) command object forjava.awt.Graphics.drawPolygon
.static class
GraphicsCommand.DrawPolyline
This is the (immutable) command object forjava.awt.Graphics.drawPolyline
.static class
GraphicsCommand.DrawRect
This is the (immutable) command object forjava.awt.Graphics.drawRect
.static class
GraphicsCommand.DrawRoundRect
This is the (immutable) command object forjava.awt.Graphics.drawRoundRect
.static class
GraphicsCommand.DrawString
This is the (immutable) command object forjava.awt.Graphics.drawString
.static class
GraphicsCommand.Fill3DRect
This is the (immutable) command object forjava.awt.Graphics.translate
.static class
GraphicsCommand.FillArc
This is the (immutable) command object forjava.awt.Graphics.fillArc
.static class
GraphicsCommand.FillOval
This is the (immutable) command object forjava.awt.Graphics.fillOval
.static class
GraphicsCommand.FillPolygon
This is the (immutable) command object forjava.awt.Graphics.fillPolygon
.static class
GraphicsCommand.FillRect
This is the (immutable) command object forjava.awt.Graphics.fillRect
.static class
GraphicsCommand.FillRoundRect
This is the (immutable) command object forjava.awt.Graphics.fillRoundRect
.static class
GraphicsCommand.General
This is the command object holding aGraphicsCommand.Graphic
object implementing an arbitrary set of graphics operations.static interface
GraphicsCommand.Graphic
This is the interface allowing any set ofGraphics
operations to be wrapped up in an object and sent down aDisplay
channel to an Active graphics component.private static class
GraphicsCommand.Null
static class
GraphicsCommand.SetClip
This is the (immutable) command object forjava.awt.Graphics.setClip
.static class
GraphicsCommand.SetColor
This is the (immutable) command object forjava.awt.Graphics.setColor
.static class
GraphicsCommand.SetFont
This is the (immutable) command object forjava.awt.Graphics.setFont
.private static class
GraphicsCommand.SetPaintMode
This is the (immutable) command object forjava.awt.Graphics.setPaintMode
.static class
GraphicsCommand.SetXORMode
This is the (immutable) command object forjava.awt.Graphics.setXORMode
.static class
GraphicsCommand.Translate
This is the (immutable) command object forjava.awt.Graphics.translate
.
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
CLEAR_RECT
(package private) static int
CLIP_RECT
(package private) static int
COPY_AREA
(package private) static int
DRAW_3D_RECT
(package private) static int
DRAW_ARC
(package private) static int
DRAW_BYTES
(package private) static int
DRAW_CHARS
(package private) static int
DRAW_IMAGE
(package private) static int
DRAW_LINE
(package private) static int
DRAW_OVAL
(package private) static int
DRAW_POLYGON
(package private) static int
DRAW_POLYLINE
(package private) static int
DRAW_RECT
(package private) static int
DRAW_ROUND_RECT
(package private) static int
DRAW_STRING
(package private) static int
FILL_3D_RECT
(package private) static int
FILL_ARC
(package private) static int
FILL_OVAL
(package private) static int
FILL_POLYGON
(package private) static int
FILL_RECT
(package private) static int
FILL_ROUND_RECT
(package private) static int
GENERAL
static GraphicsCommand
NULL
This is the null command whose interpretation is a no-op.(package private) static int
NULL_TAG
(package private) static int
SET_CLIP
(package private) static int
SET_COLOR
(package private) static int
SET_FONT
static GraphicsCommand
SET_PAINT_MODE
This is the (immutable) command object forjava.awt.Graphics.setPaintMode
.(package private) static int
SET_PAINT_MODE_TAG
(package private) static int
SET_XOR_MODE
(package private) static int
TRANSLATE
-
Fields inherited from class org.jcsp.lang.TaggedProtocol
tag
-
-
Constructor Summary
Constructors Constructor Description GraphicsCommand(int tag)
-
-
-
Field Detail
-
NULL_TAG
static final int NULL_TAG
- See Also:
- Constant Field Values
-
TRANSLATE
static final int TRANSLATE
- See Also:
- Constant Field Values
-
SET_COLOR
static final int SET_COLOR
- See Also:
- Constant Field Values
-
SET_PAINT_MODE_TAG
static final int SET_PAINT_MODE_TAG
- See Also:
- Constant Field Values
-
SET_XOR_MODE
static final int SET_XOR_MODE
- See Also:
- Constant Field Values
-
SET_FONT
static final int SET_FONT
- See Also:
- Constant Field Values
-
CLIP_RECT
static final int CLIP_RECT
- See Also:
- Constant Field Values
-
SET_CLIP
static final int SET_CLIP
- See Also:
- Constant Field Values
-
COPY_AREA
static final int COPY_AREA
- See Also:
- Constant Field Values
-
DRAW_LINE
static final int DRAW_LINE
- See Also:
- Constant Field Values
-
FILL_RECT
static final int FILL_RECT
- See Also:
- Constant Field Values
-
DRAW_RECT
static final int DRAW_RECT
- See Also:
- Constant Field Values
-
CLEAR_RECT
static final int CLEAR_RECT
- See Also:
- Constant Field Values
-
DRAW_ROUND_RECT
static final int DRAW_ROUND_RECT
- See Also:
- Constant Field Values
-
FILL_ROUND_RECT
static final int FILL_ROUND_RECT
- See Also:
- Constant Field Values
-
DRAW_3D_RECT
static final int DRAW_3D_RECT
- See Also:
- Constant Field Values
-
FILL_3D_RECT
static final int FILL_3D_RECT
- See Also:
- Constant Field Values
-
DRAW_OVAL
static final int DRAW_OVAL
- See Also:
- Constant Field Values
-
FILL_OVAL
static final int FILL_OVAL
- See Also:
- Constant Field Values
-
DRAW_ARC
static final int DRAW_ARC
- See Also:
- Constant Field Values
-
FILL_ARC
static final int FILL_ARC
- See Also:
- Constant Field Values
-
DRAW_POLYLINE
static final int DRAW_POLYLINE
- See Also:
- Constant Field Values
-
DRAW_POLYGON
static final int DRAW_POLYGON
- See Also:
- Constant Field Values
-
FILL_POLYGON
static final int FILL_POLYGON
- See Also:
- Constant Field Values
-
DRAW_STRING
static final int DRAW_STRING
- See Also:
- Constant Field Values
-
DRAW_CHARS
static final int DRAW_CHARS
- See Also:
- Constant Field Values
-
DRAW_BYTES
static final int DRAW_BYTES
- See Also:
- Constant Field Values
-
DRAW_IMAGE
static final int DRAW_IMAGE
- See Also:
- Constant Field Values
-
GENERAL
static final int GENERAL
- See Also:
- Constant Field Values
-
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
.
-
-