|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.library.BaseVertex
graphlab.graph.graph.VertexModel
public class VertexModel
Authors: Azin Azadi,Roozbeh
Field Summary | |
---|---|
boolean |
isSelected
|
GShape |
shape
|
VertexModelListener |
view
|
Fields inherited from class graphlab.library.BaseVertex |
---|
prop |
Constructor Summary | |
---|---|
VertexModel()
|
|
VertexModel(VertexModel v)
copy constructor creates a copy (clone) of v |
Method Summary | ||
---|---|---|
static void |
addGlobalUserDefinedAttribute(java.lang.String name,
java.lang.Object defaultvalue)
sets and stores a global user defined attribute for the vertex. |
|
java.awt.geom.Rectangle2D.Double |
getBounds()
|
|
java.awt.Point |
getCenter()
|
|
VertexModel |
getCopy()
|
|
java.lang.String |
getLabel()
|
|
GraphPoint |
getLabelLocation()
|
|
GraphPoint |
getLocation()
|
|
GShape |
getShape()
|
|
GStroke |
getShapeStroke()
|
|
GraphPoint |
getSize()
|
|
|
getUserDefinedAttribute(java.lang.String name)
returns the specified user defined attribute, or null if it does not exists. |
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getUserDefinedAttributes()
|
|
boolean |
isSelected()
|
|
static void |
removeGlobalUserDefinedAttribute(java.lang.String name)
|
|
void |
removeUserDefinedAttribute(java.lang.String name)
removes the given attribute from the list of user defined attributes |
|
void |
repaint()
|
|
void |
setColor(int color)
Sets the color of the vertex. |
|
void |
setLabel(java.lang.String label)
|
|
void |
setLabelLocation(GraphPoint graphPoint)
|
|
void |
setLocation(GraphPoint p)
|
|
void |
setLocation(java.awt.Point p)
|
|
void |
setMark(boolean mark)
Flag whether it is marked. |
|
void |
setProp(BaseVertexProperties prop)
Sets properties object for this vertex; Overwrites the existing. |
|
void |
setSelected(boolean selected)
|
|
void |
setShape(GShape shape)
|
|
void |
setShapeStroke(GStroke stroke)
|
|
void |
setSize(GraphPoint size)
|
|
void |
setUserDefinedAttribute(java.lang.String name,
java.lang.Object value)
sets and stores a user defined attribute for the vertex. |
|
void |
setVertexListener(VertexModelListener listener)
|
|
java.lang.String |
toString()
|
Methods inherited from class graphlab.library.BaseVertex |
---|
getColor, getId, getMark, getProp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public VertexModelListener view
public GShape shape
public boolean isSelected
Constructor Detail |
---|
public VertexModel(VertexModel v)
v
- public VertexModel()
Method Detail |
---|
public void setUserDefinedAttribute(java.lang.String name, java.lang.Object value)
name
- value
- public <t> t getUserDefinedAttribute(java.lang.String name)
name
-
public void removeUserDefinedAttribute(java.lang.String name)
name
- public java.util.HashMap<java.lang.String,java.lang.Object> getUserDefinedAttributes()
public static void addGlobalUserDefinedAttribute(java.lang.String name, java.lang.Object defaultvalue)
public static void removeGlobalUserDefinedAttribute(java.lang.String name)
addGlobalUserDefinedAttribute(java.lang.String, java.lang.Object)
public VertexModel getCopy()
getCopy
in class BaseVertex
public java.lang.String toString()
toString
in class BaseVertex
public void setMark(boolean mark)
BaseVertex
setMark
in class BaseVertex
mark
- whether the vertex is marked.public void setVertexListener(VertexModelListener listener)
public void setProp(BaseVertexProperties prop)
BaseVertex
setProp
in class BaseVertex
prop
- The property object to set.public java.awt.Point getCenter()
public void setLocation(java.awt.Point p)
public void setLocation(GraphPoint p)
public GraphPoint getLocation()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public void setShape(GShape shape)
public GShape getShape()
public void setShapeStroke(GStroke stroke)
public GStroke getShapeStroke()
public void setSize(GraphPoint size)
public GraphPoint getSize()
public java.awt.geom.Rectangle2D.Double getBounds()
public boolean isSelected()
public void setSelected(boolean selected)
public void repaint()
public void setLabelLocation(GraphPoint graphPoint)
public GraphPoint getLabelLocation()
public void setColor(int color)
BaseVertex
setColor
in class BaseVertex
color
- Sets col as the color of the vertex.
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |