Package org.jcsp.awt
Class GraphicsProtocol
java.lang.Object
org.jcsp.lang.TaggedProtocol
org.jcsp.awt.GraphicsProtocol
- Direct Known Subclasses:
GraphicsProtocol.General
,GraphicsProtocol.GetBackground
,GraphicsProtocol.GetComponent
,GraphicsProtocol.GetDimension
,GraphicsProtocol.MakeMISImage
,GraphicsProtocol.RequestFocus
,GraphicsProtocol.SetBackground
,GraphicsProtocol.SetPaintable
This is the tagged protocol for use over the toGraphics
configuration channel of an active graphics component.
Description
GraphicsProtocol is the tagged protocol for use over the toGraphics configuration channel of an active graphics component (for example, seeActiveCanvas.setGraphicsChannels
).
It is a collection of static immutable enquiry/configuration objects and static configuration classes. An enquiry sent down the toGraphics channel generates an appropriate reply on the fromGraphics channel. A configuration class may be used to construct an immutable configuration object that may be sent down the toGraphics channel to configure some property of the graphics component. A configuration message is always acknowledged with a Boolean.TRUE returned on the fromGraphics channel (once the configuration has happened).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
This is the interface for general configuration of the graphics component.static final class
This is a general configuration class for the graphics component.private static final class
private static final class
private static final class
static final class
This is a configuration class to associate a java.awt.image.MemoryImageSource with the graphics component.private static final class
static final class
This is a configuration class for setting the background java.awt.Color of the active graphics component.static final class
This is a configuration class to register a org.jcsp.awt.Paintable object with the graphics component. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
static final GraphicsProtocol
This is an enquiry object to find the background colour of the active graphics component.(package private) static final int
static final GraphicsProtocol
This is an enquiry object to obtain the active graphics component.(package private) static final int
static final GraphicsProtocol
This is an enquiry object to find the size of the active graphics component.(package private) static final int
(package private) static final int
static final GraphicsProtocol
This is a configuration object to request input focus on the graphics component for keyboard and mouse evnts.(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
-
GET_DIMENSION_TAG
static final int GET_DIMENSION_TAG- See Also:
-
GET_COMPONENT_TAG
static final int GET_COMPONENT_TAG- See Also:
-
GET_BACKGROUND_TAG
static final int GET_BACKGROUND_TAG- See Also:
-
SET_BACKGROUND_TAG
static final int SET_BACKGROUND_TAG- See Also:
-
REQUEST_FOCUS_TAG
static final int REQUEST_FOCUS_TAG- See Also:
-
MAKE_MIS_IMAGE_TAG
static final int MAKE_MIS_IMAGE_TAG- See Also:
-
SET_PAINTABLE_TAG
static final int SET_PAINTABLE_TAG- See Also:
-
GENERAL_TAG
static final int GENERAL_TAG- See Also:
-
GET_DIMENSION
This is an enquiry object to find the size of the active graphics component. The java.awt.Dimension will be returned down the fromGraphics channel. -
GET_COMPONENT
This is an enquiry object to obtain the active graphics component. The java.awt.Component will be returned down the fromGraphics channel. -
GET_BACKGROUND
This is an enquiry object to find the background colour of the active graphics component. The background java.awt.Color will be returned down the fromGraphics channel. -
REQUEST_FOCUS
This is a configuration object to request input focus on the graphics component for keyboard and mouse evnts. A Boolean.TRUE will be returned down the fromGraphics channel.
-
-
Constructor Details
-
GraphicsProtocol
GraphicsProtocol(int tag)
-