public abstract class GraphicsProtocol extends TaggedProtocol
ActiveCanvas.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).
ActiveCanvas
,
TaggedProtocol
Modifier and Type | Class and Description |
---|---|
static interface |
GraphicsProtocol.Configure
This is the interface for general configuration of the graphics component.
|
static class |
GraphicsProtocol.General
This is a general configuration class for the graphics component.
|
private static class |
GraphicsProtocol.GetBackground |
private static class |
GraphicsProtocol.GetComponent |
private static class |
GraphicsProtocol.GetDimension |
static class |
GraphicsProtocol.MakeMISImage
This is a configuration class to associate a java.awt.image.MemoryImageSource
with the graphics component.
|
private static class |
GraphicsProtocol.RequestFocus |
static class |
GraphicsProtocol.SetBackground
This is a configuration class for setting the background java.awt.Color
of the active graphics component.
|
static class |
GraphicsProtocol.SetPaintable
This is a configuration class to register a org.jcsp.awt.Paintable object
with the graphics component.
|
Modifier and Type | Field and Description |
---|---|
(package private) static int |
GENERAL_TAG |
static GraphicsProtocol |
GET_BACKGROUND
This is an enquiry object to find the background colour of the active graphics component.
|
(package private) static int |
GET_BACKGROUND_TAG |
static GraphicsProtocol |
GET_COMPONENT
This is an enquiry object to obtain the active graphics component.
|
(package private) static int |
GET_COMPONENT_TAG |
static GraphicsProtocol |
GET_DIMENSION
This is an enquiry object to find the size of the active graphics component.
|
(package private) static int |
GET_DIMENSION_TAG |
(package private) static int |
MAKE_MIS_IMAGE_TAG |
static GraphicsProtocol |
REQUEST_FOCUS
This is a configuration object to request input focus on the graphics component
for keyboard and mouse evnts.
|
(package private) static int |
REQUEST_FOCUS_TAG |
(package private) static int |
SET_BACKGROUND_TAG |
(package private) static int |
SET_PAINTABLE_TAG |
tag
Constructor and Description |
---|
GraphicsProtocol(int tag) |
static final int GET_DIMENSION_TAG
static final int GET_COMPONENT_TAG
static final int GET_BACKGROUND_TAG
static final int SET_BACKGROUND_TAG
static final int REQUEST_FOCUS_TAG
static final int MAKE_MIS_IMAGE_TAG
static final int SET_PAINTABLE_TAG
static final int GENERAL_TAG
public static final GraphicsProtocol GET_DIMENSION
public static final GraphicsProtocol GET_COMPONENT
public static final GraphicsProtocol GET_BACKGROUND
public static final GraphicsProtocol REQUEST_FOCUS