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
This is the tagged protocol interpreted by objects
(such as
DisplayList
) that implement the Display
interface.
Description
GraphicsCommand is theTaggedProtocol
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
This is the (immutable) command object forjava.awt.Graphics.clearRect
.static final class
This is the (immutable) command object forjava.awt.Graphics.clipRect
.static final class
This is the (immutable) command object forjava.awt.Graphics.copyArea
.static final class
This is the (immutable) command object forjava.awt.Graphics.draw3DRect
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawArc
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawBytes
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawChars
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawImage
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawLine
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawOval
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawPolygon
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawPolyline
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawRect
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawRoundRect
.static final class
This is the (immutable) command object forjava.awt.Graphics.drawString
.static final class
This is the (immutable) command object forjava.awt.Graphics.translate
.static final class
This is the (immutable) command object forjava.awt.Graphics.fillArc
.static final class
This is the (immutable) command object forjava.awt.Graphics.fillOval
.static final class
This is the (immutable) command object forjava.awt.Graphics.fillPolygon
.static final class
This is the (immutable) command object forjava.awt.Graphics.fillRect
.static final class
This is the (immutable) command object forjava.awt.Graphics.fillRoundRect
.static final class
This is the command object holding aGraphicsCommand.Graphic
object implementing an arbitrary set of graphics operations.static interface
private static final class
static final class
This is the (immutable) command object forjava.awt.Graphics.setClip
.static final class
This is the (immutable) command object forjava.awt.Graphics.setColor
.static final class
This is the (immutable) command object forjava.awt.Graphics.setFont
.private static final class
This is the (immutable) command object forjava.awt.Graphics.setPaintMode
.static final class
This is the (immutable) command object forjava.awt.Graphics.setXORMode
.static final class
This is the (immutable) command object forjava.awt.Graphics.translate
. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
static final GraphicsCommand
This is the null command whose interpretation is a no-op.(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
static final GraphicsCommand
This is the (immutable) command object forjava.awt.Graphics.setPaintMode
.(package private) static final int
(package private) static final int
(package private) static final int
Fields inherited from class org.jcsp.lang.TaggedProtocol
tag
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NULL_TAG
static final int NULL_TAG- See Also:
-
TRANSLATE
static final int TRANSLATE- See Also:
-
SET_COLOR
static final int SET_COLOR- See Also:
-
SET_PAINT_MODE_TAG
static final int SET_PAINT_MODE_TAG- See Also:
-
SET_XOR_MODE
static final int SET_XOR_MODE- See Also:
-
SET_FONT
static final int SET_FONT- See Also:
-
CLIP_RECT
static final int CLIP_RECT- See Also:
-
SET_CLIP
static final int SET_CLIP- See Also:
-
COPY_AREA
static final int COPY_AREA- See Also:
-
DRAW_LINE
static final int DRAW_LINE- See Also:
-
FILL_RECT
static final int FILL_RECT- See Also:
-
DRAW_RECT
static final int DRAW_RECT- See Also:
-
CLEAR_RECT
static final int CLEAR_RECT- See Also:
-
DRAW_ROUND_RECT
static final int DRAW_ROUND_RECT- See Also:
-
FILL_ROUND_RECT
static final int FILL_ROUND_RECT- See Also:
-
DRAW_3D_RECT
static final int DRAW_3D_RECT- See Also:
-
FILL_3D_RECT
static final int FILL_3D_RECT- See Also:
-
DRAW_OVAL
static final int DRAW_OVAL- See Also:
-
FILL_OVAL
static final int FILL_OVAL- See Also:
-
DRAW_ARC
static final int DRAW_ARC- See Also:
-
FILL_ARC
static final int FILL_ARC- See Also:
-
DRAW_POLYLINE
static final int DRAW_POLYLINE- See Also:
-
DRAW_POLYGON
static final int DRAW_POLYGON- See Also:
-
FILL_POLYGON
static final int FILL_POLYGON- See Also:
-
DRAW_STRING
static final int DRAW_STRING- See Also:
-
DRAW_CHARS
static final int DRAW_CHARS- See Also:
-
DRAW_BYTES
static final int DRAW_BYTES- See Also:
-
DRAW_IMAGE
static final int DRAW_IMAGE- See Also:
-
GENERAL
static final int GENERAL- See Also:
-
NULL
This is the null command whose interpretation is a no-op. -
SET_PAINT_MODE
This is the (immutable) command object forjava.awt.Graphics.setPaintMode
.
-
-
Constructor Details
-
GraphicsCommand
GraphicsCommand(int tag)
-