fdda.graphics.java2d
Class GraphicalSystem.ComponentWrapper

java.lang.Object
  |
  +--fdda.graphics.java2d.GraphicalSystem.ComponentWrapper
Enclosing class:
GraphicalSystem

static class GraphicalSystem.ComponentWrapper
extends Object

Wraps a component: adds an attribute ID, enables comparing of the components so the TreeSet can be used to store them.


Constructor Summary
GraphicalSystem.ComponentWrapper(Component component, Integer id)
          Constructor
 
Method Summary
 Component getComponent()
          Returns the wrapped component
 Integer getID()
          Returns the ID
 void setComponent(Component component)
          Sets the wrapped component
 void setID(Integer id)
          Sets the ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicalSystem.ComponentWrapper

public GraphicalSystem.ComponentWrapper(Component component,
                                        Integer id)
Constructor

Parameters:
component - the component
id - the ID
Method Detail

getComponent

public Component getComponent()
Returns the wrapped component

Returns:
the component

setComponent

public void setComponent(Component component)
Sets the wrapped component

Parameters:
component - the component

getID

public Integer getID()
Returns the ID

Returns:
the ID

setID

public void setID(Integer id)
Sets the ID

Parameters:
id - the ID


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.