|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.library.BaseEdge<VertexModel>
graphlab.graph.graph.EdgeModel
public class EdgeModel
User: azin azadi,roozbeh ebrahimi
Field Summary | |
---|---|
GraphPoint |
curveControlPoint
|
java.awt.geom.Line2D.Double |
line
it's a straight line between source and target vertices |
EdgeModelListener |
view
|
Fields inherited from class graphlab.library.BaseEdge |
---|
prop, source, target |
Constructor Summary | |
---|---|
EdgeModel(EdgeModel edge,
VertexModel source,
VertexModel target)
copy constructor creates a copy (clone) of edge, the source and target of edge will be source and target parameters other properties of edge will be copied from edge parameter |
|
EdgeModel(VertexModel v1,
VertexModel v2)
|
Method Summary | ||
---|---|---|
static void |
addGlobalUserDefinedAttribute(java.lang.String name,
java.lang.Object defaultvalue)
sets and stores a global user defined attribute for the vertex. |
|
double |
getAngle()
Returns the getAngle, in radians, of the edge from the positive x-axis, where the source vertex marks the origin of the edge. |
|
Arrow |
getArrow()
|
|
EdgeModel |
getCopy(VertexModel vm1,
VertexModel vm2)
This is the copy constructor method for the Edge Model |
|
GraphPoint |
getCurveControlPoint()
|
|
java.lang.String |
getId()
|
|
java.lang.String |
getLabel()
|
|
GraphPoint |
getLabelLocation()
|
|
GStroke |
getStroke()
|
|
|
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()
|
|
boolean |
isShowWeight()
|
|
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 |
setArrow(Arrow a)
|
|
void |
setColor(int color)
Sets the color of the edge. |
|
void |
setCurveControlPoint(GraphPoint controlPoint)
|
|
void |
setEdgeModelListener(EdgeModelListener listener)
|
|
void |
setLabel(java.lang.String label)
|
|
void |
setLabelLocation(GraphPoint graphPoint)
|
|
void |
setMark(boolean m)
Sets the mark of the edge. |
|
void |
setProp(BaseEdgeProperties prop)
Sets properties object for this edge; Overwrites the existing. |
|
void |
setSelected(boolean selected)
|
|
void |
setShowWeight(boolean showWeight)
|
|
void |
setStroke(GStroke stroke)
|
|
void |
setUserDefinedAttribute(java.lang.String name,
java.lang.Object value)
sets and stores a user defined attribute for the vertex. |
|
void |
setWeight(int weight)
Sets the weight of the edge. |
|
java.lang.String |
toString()
|
|
void |
updateBounds()
|
Methods inherited from class graphlab.library.BaseEdge |
---|
compareTo, getColor, getMark, getProp, getWeight |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public EdgeModelListener view
public java.awt.geom.Line2D.Double line
public GraphPoint curveControlPoint
Constructor Detail |
---|
public EdgeModel(EdgeModel edge, VertexModel source, VertexModel target)
edge
- public EdgeModel(VertexModel v1, VertexModel v2)
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)
VertexModel.addGlobalUserDefinedAttribute(java.lang.String, java.lang.Object)
public EdgeModel getCopy(VertexModel vm1, VertexModel vm2)
getCopy
in class BaseEdge<VertexModel>
vm1
- vm2
-
public void setMark(boolean m)
BaseEdge
setMark
in class BaseEdge<VertexModel>
m
- Sets m as the mark of the edge.public void setStroke(GStroke stroke)
public GStroke getStroke()
public void setWeight(int weight)
BaseEdge
setWeight
in class BaseEdge<VertexModel>
weight
- Sets w as the color of the edge.public void setProp(BaseEdgeProperties prop)
BaseEdge
setProp
in class BaseEdge<VertexModel>
prop
- The property object to set.public void setColor(int color)
BaseEdge
setColor
in class BaseEdge<VertexModel>
color
- Sets col as the color of the edge.public Arrow getArrow()
public void setArrow(Arrow a)
public void setEdgeModelListener(EdgeModelListener listener)
public double getAngle()
public java.lang.String toString()
toString
in class BaseEdge<VertexModel>
public boolean isSelected()
public void setSelected(boolean selected)
public java.lang.String getId()
public GraphPoint getCurveControlPoint()
public void setCurveControlPoint(GraphPoint controlPoint)
public void setLabel(java.lang.String label)
public java.lang.String getLabel()
public boolean isShowWeight()
public void setShowWeight(boolean showWeight)
public void updateBounds()
public void setLabelLocation(GraphPoint graphPoint)
public GraphPoint getLabelLocation()
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |