Objects implementing this interface provide graphics services to a CSProcess.
Type | Name and description |
---|---|
boolean |
change(GraphicsCommand[] c, int i) Changes the array of GraphicsCommands to be interpreted by replacing elements i onwards with the new ones. |
boolean |
change(GraphicsCommand c, int i) Changes the array of GraphicsCommands to be executed by replacing element i with the new one. |
int |
extend(GraphicsCommand[] c) Extends the array of GraphicsCommands to be interpreted. |
int |
extend(GraphicsCommand c) Extends the array of GraphicsCommands to be executed by one command. |
GraphicsCommand[] |
get() Returns a copy of the array of GraphicsCommands currently held. |
void |
set(GraphicsCommand[] c) Sets the array of GraphicsCommands to be interpreted. |
void |
set(GraphicsCommand c) Sets the GraphicsCommand to be interpreted. |
Changes the array of GraphicsCommands to be interpreted by replacing elements i onwards with the new ones. There must be at least (i + c.length) elements in the original array -- else this method will not change anything and will return false.
c
- the new GraphicsCommands to be interpreted.i
- the start index for the replacement.Changes the array of GraphicsCommands to be executed by replacing element i with the new one. There must be at least (i + 1) elements in the original array -- else this method will not change anything and will return false.
c
- the new GraphicsCommand to be interpreted.i
- the index for the replacement.Extends the array of GraphicsCommands to be interpreted.
c
- the extra GraphicsCommands to be interpreted.Extends the array of GraphicsCommands to be executed by one command.
c
- the extra GraphicsCommand to be interpreted.Returns a copy of the array of GraphicsCommands currently held.
Sets the array of GraphicsCommands to be interpreted. The commands will be interpreted in ascending order of index.
c
- the array of GraphicsCommands to be interpreted.Sets the GraphicsCommand to be interpreted.
c
- the array of GraphicsCommands to be interpreted.