livespace.services.entities.room_presentation
Class RoomPresentation

java.lang.Object
  extended by dsto.dfc.databeans.AbstractDataObject
      extended by dsto.dfc.databeans.SimpleDataObject
          extended by dsto.dfc.databeans.FancyDataObject
              extended by livespace.services.Entity
                  extended by livespace.services.entities.room_presentation.RoomPresentation
All Implemented Interfaces:
IDataObject, IDataObjectChildListener, Cloneable

public class RoomPresentation
extends Entity

The root Entity used to store entity visual representation properties

Author:
karu

Field Summary
static String ENTITY_TYPE
           
 Color linkColour
          link colour
 RoomSchematicEntity roomSchematicEntity
          A reference to the Entity storing the SchematicItems entities
 DataBean schematicDimension
          Bounding rectangle within which items may be placed
 Color textColour
          Foreground colour
 
Fields inherited from class livespace.services.Entity
container, id, lastTouched, name, unconfirmedUpdates
 
Fields inherited from class dsto.dfc.databeans.AbstractDataObject
listeners
 
Fields inherited from interface dsto.dfc.databeans.IDataObject
OVERRIDE, PERSISTENT, PERSISTENT_OVERRIDE, TRANSIENT, TRANSIENT_OVERRIDE
 
Constructor Summary
RoomPresentation()
          Default constructor
 
Method Summary
 void addSchematicListener(PropertyListener listener)
          Add a listener for changes to the container holding SchamticItem instance
 SchematicItem createSchematicItem(Entity entity)
          Creates a SchematicItem instance, adds it to the RoomSchematicEntity instance
 SchematicItem createSchematicItem(Entity entity, Point location)
          Creates a SchematicItem instance, adds it to the RoomSchematicEntity instance
 SchematicItem findSchematicItem(String entityId)
          Finds a SchematicItem instance based on the id of the represented entity
 EntityRegistry getSchematicItems()
          Returns the list of SchematicItem instances representing entities within the livespace
 String getType()
          Returns the type of this entity
 
Methods inherited from class livespace.services.Entity
create, createId, getElvin, getType, getTypeInfo, mutex, sameEntity, shallowClone, waitForProperty, waitForProperty, waitForProperty, waitForProperty
 
Methods inherited from class dsto.dfc.databeans.FancyDataObject
childPropertyChanged, getValue, isTransient, propertyIterator, setValue
 
Methods inherited from class dsto.dfc.databeans.SimpleDataObject
getFieldNames, setValue
 
Methods inherited from class dsto.dfc.databeans.AbstractDataObject
addFirstPropertyListener, addPropertyListener, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, getBeanValue, getBooleanValue, getBooleanValue, getCharValue, getCharValue, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getObjectValue, getPropertyListeners, getShortValue, getStringValue, registerValue, removePropertyListener, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, unregisterValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTITY_TYPE

public static String ENTITY_TYPE

textColour

public Color textColour
Foreground colour


linkColour

public Color linkColour
link colour


schematicDimension

public DataBean schematicDimension
Bounding rectangle within which items may be placed


roomSchematicEntity

public RoomSchematicEntity roomSchematicEntity
A reference to the Entity storing the SchematicItems entities

Constructor Detail

RoomPresentation

public RoomPresentation()
Default constructor

Method Detail

addSchematicListener

public void addSchematicListener(PropertyListener listener)
Add a listener for changes to the container holding SchamticItem instance

Parameters:
listener -

getType

public String getType()
Returns the type of this entity

Specified by:
getType in class Entity

getSchematicItems

public EntityRegistry getSchematicItems()
Returns the list of SchematicItem instances representing entities within the livespace


findSchematicItem

public SchematicItem findSchematicItem(String entityId)
Finds a SchematicItem instance based on the id of the represented entity

Parameters:
entityId -

createSchematicItem

public SchematicItem createSchematicItem(Entity entity)
Creates a SchematicItem instance, adds it to the RoomSchematicEntity instance

Parameters:
entity -
Returns:
Returns the new instance

createSchematicItem

public SchematicItem createSchematicItem(Entity entity,
                                         Point location)
Creates a SchematicItem instance, adds it to the RoomSchematicEntity instance

Parameters:
entity -
Returns:
Returns the new instance


Copyright © 2008 Commonwealth of Australia