org.molwind.graph
Class DefaultEntityVertex

java.lang.Object
  extended by org.molwind.graph.DefaultEntityVertex
All Implemented Interfaces:
EntityVertex

public class DefaultEntityVertex
extends java.lang.Object
implements EntityVertex

DefaultEntityVertex represents the default vertex of a DefaultEntityGraph object.

Version:
1.0
Author:
Oliver Karch

Field Summary
 java.awt.Color color
           
 
Constructor Summary
DefaultEntityVertex()
          DefaultEntityVertex constructor, creates a new vertex.
 
Method Summary
 WorldEntity getEntity()
          Get the Entity value.
 java.lang.String getId()
          Get the Id value.
 java.awt.geom.Point2D.Double getPosition()
          Returns the position of the vertex
 void setEntity(WorldEntity newEntity)
          Set the Entity value.
 void setId(java.lang.String newId)
          Set the Id value.
 void setPosition(java.awt.geom.Point2D.Double position)
          Sets the layout position
 java.lang.String toString()
          VertexId to String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

color

public java.awt.Color color
Constructor Detail

DefaultEntityVertex

public DefaultEntityVertex()
DefaultEntityVertex constructor, creates a new vertex.

Method Detail

getId

public java.lang.String getId()
Get the Id value.

Specified by:
getId in interface EntityVertex
Returns:
the Id value

setId

public void setId(java.lang.String newId)
Set the Id value.

Specified by:
setId in interface EntityVertex
Parameters:
newId - the new Id value

getEntity

public WorldEntity getEntity()
Get the Entity value.

Specified by:
getEntity in interface EntityVertex
Returns:
the Entity value

setEntity

public void setEntity(WorldEntity newEntity)
Set the Entity value.

Specified by:
setEntity in interface EntityVertex
Parameters:
newEntity - the new Entity value

getPosition

public java.awt.geom.Point2D.Double getPosition()
Returns the position of the vertex

Specified by:
getPosition in interface EntityVertex
Returns:
The layout position

setPosition

public void setPosition(java.awt.geom.Point2D.Double position)
Sets the layout position

Specified by:
setPosition in interface EntityVertex
Parameters:
The - posion to be set

toString

public java.lang.String toString()
VertexId to String

Overrides:
toString in class java.lang.Object
Returns:
VetexId


Copyright © 2008-2010. All Rights Reserved.