gcspy.interpreter.client
Class ClientSpace

java.lang.Object
  extended by gcspy.interpreter.Space
      extended by gcspy.interpreter.client.ClientSpace

public class ClientSpace
extends Space

Represents a client-side space

Author:
Tony Printezis

Field Summary
 
Fields inherited from class gcspy.interpreter.Space
blockInfo, control, CONTROL_BACKGROUND, CONTROL_LINK, CONTROL_SEPARATOR, CONTROL_UNUSED, CONTROL_USED, DEFAULT_UNUSED_STRING, driverName, id, mainSpace, name, spaceInfo, streamNum, streams, tileNames, tileNum, title, unusedString
 
Constructor Summary
ClientSpace()
          Create s new client space
 
Method Summary
 void calcMaxima()
          Calculate the maximum value in each stream that uses a PRESENTATION_MAX_VAR presentation style
 void deserialise(BufferedInput input)
          Deserialise this space
 java.lang.String presentSummary(java.lang.String prefix1, java.lang.String prefix2)
          Represent a summary of the space as a string
 java.lang.String presentTile(int index)
          Represent a tile as a string
 
Methods inherited from class gcspy.interpreter.Space
dump, getBlockInfo, getControl, getFullName, getID, getName, getSpaceInfo, getStream, getStreamNum, getTileName, getTileNum, getTitle, getUnusedString, initControl, isControlBackground, isControlLink, isControlSeparator, isControlUnused, isControlUsed, isMainSpace, serialise, setControl, setID, setSpaceInfo, setupControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientSpace

public ClientSpace()
Create s new client space

Method Detail

calcMaxima

public void calcMaxima()
Calculate the maximum value in each stream that uses a PRESENTATION_MAX_VAR presentation style


presentTile

public java.lang.String presentTile(int index)
Represent a tile as a string

Parameters:
index - the tile index
Returns:
its string representaton

presentSummary

public java.lang.String presentSummary(java.lang.String prefix1,
                                       java.lang.String prefix2)
Represent a summary of the space as a string

Parameters:
prefix1 - A string to prefix the summary
prefix2 - A string to prefix the summary if the style is PRESENTATION_ENUM
Returns:
a string representation of the summary

deserialise

public void deserialise(BufferedInput input)
Deserialise this space

Overrides:
deserialise in class Space
Parameters:
input - The BufferedInput to use