| Constructor and Description |
|---|
GraphVertex() |
GraphVertex(java.awt.Dimension size)
Creates a vertex with the provided size
|
GraphVertex(java.awt.Dimension size,
java.lang.Object content)
Creates a vertex with the provided size and content
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContent() |
java.awt.Dimension |
getSize() |
void |
setContent(java.lang.Object content) |
void |
setSize(java.awt.Dimension size) |
public GraphVertex()
public GraphVertex(java.awt.Dimension size,
java.lang.Object content)
size - Size of the vertexcontent - Content of the vertexpublic GraphVertex(java.awt.Dimension size)
size - Size of the vertexpublic java.awt.Dimension getSize()
public java.lang.Object getContent()
getContent in interface Vertexpublic void setSize(java.awt.Dimension size)
public void setContent(java.lang.Object content)
setContent in interface Vertexcontent - Content to set