|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.touchgraph.graphlayout.Node | +--org.datamanager.simpleton.TouchgraphEntityNode
TouchgraphEntityNode is a touchgraph node representing an Entity. This code is based on the WikiNode from the Touchgraph WikiBrowser. The Node label is the Subject of the mail message. TouchgraphEntityNodes have dynamic color and size. The color is an indicator of how old the message the node represents is compared to the current time. The size is inversely proportional to the number of Nodes currently being shown. FIXME: that size thing is sort of meaningless chrome.
Constructor Summary | |
TouchgraphEntityNode(Entity entity)
|
Method Summary | |
Entity |
getEntity()
Retrieves the Entity represented by this node. |
int |
getHeight()
Returns the height of the node. |
int |
getWidth()
Returns the width of the node. |
void |
paint(Graphics g,
TGPanel tgPanel)
Paints the Node. |
void |
paintNodeBody(Graphics g,
TGPanel tgPanel)
Paints the background of the Node. |
void |
setEntity(Entity entity)
Sets the Entity represented by this node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TouchgraphEntityNode(Entity entity) throws DataManagerException
Method Detail |
public void setEntity(Entity entity)
public Entity getEntity()
public void paint(Graphics g, TGPanel tgPanel)
public void paintNodeBody(Graphics g, TGPanel tgPanel)
public int getHeight()
public int getWidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |