public class DefaultNode<O> extends java.lang.Object implements NeptusNodeElement<O>
Modifier and Type | Field and Description |
---|---|
static double |
circleRadius |
protected O |
object |
Constructor and Description |
---|
DefaultNode() |
Modifier and Type | Method and Description |
---|---|
void |
addIncomingEdge(NeptusEdgeElement<O> edge) |
void |
addOutgoingEdge(NeptusEdgeElement<O> edge) |
void |
cleanup() |
boolean |
containsPoint(java.awt.geom.Point2D point) |
java.lang.String |
getElementName() |
java.lang.String |
getID() |
java.util.LinkedHashMap<java.lang.String,NeptusEdgeElement<O>> |
getIncomingEdges() |
int |
getMaxX() |
int |
getMaxY() |
java.util.LinkedHashMap<java.lang.String,NeptusEdgeElement<O>> |
getOutgoingEdges() |
java.awt.geom.Point2D |
getPosition() |
com.l2fprod.common.propertysheet.DefaultProperty[] |
getProperties() |
java.lang.String |
getPropertiesDialogTitle() |
java.lang.String[] |
getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties) |
O |
getUserObject() |
boolean |
isFinalNode() |
boolean |
isInitialNode() |
boolean |
isSelected() |
void |
paint(java.awt.Graphics2D g,
NeptusGraph<?,?> graph) |
void |
removeIncomingEdge(NeptusEdgeElement edge) |
void |
removeOutgoingEdge(NeptusEdgeElement edge) |
void |
setFinalNode(boolean finalNode) |
void |
setID(java.lang.String id) |
void |
setInitialNode(boolean initialNode) |
void |
setPosition(java.awt.geom.Point2D point) |
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setSelected(boolean selected) |
void |
setUserObject(O userObject) |
java.lang.String |
toString() |
protected O object
public static double circleRadius
public java.awt.geom.Point2D getPosition()
getPosition
in interface NeptusNodeElement<O>
public void setPosition(java.awt.geom.Point2D point)
setPosition
in interface NeptusNodeElement<O>
public java.lang.String getElementName()
getElementName
in interface NeptusGraphElement<O>
public java.lang.String getID()
getID
in interface NeptusGraphElement<O>
public O getUserObject()
getUserObject
in interface NeptusGraphElement<O>
public void paint(java.awt.Graphics2D g, NeptusGraph<?,?> graph)
paint
in interface NeptusGraphElement<O>
public void setID(java.lang.String id)
setID
in interface NeptusGraphElement<O>
public void setUserObject(O userObject)
setUserObject
in interface NeptusGraphElement<O>
public com.l2fprod.common.propertysheet.DefaultProperty[] getProperties()
getProperties
in interface PropertiesProvider
public java.lang.String getPropertiesDialogTitle()
getPropertiesDialogTitle
in interface PropertiesProvider
public java.lang.String[] getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties)
getPropertiesErrors
in interface PropertiesProvider
public void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties
in interface PropertiesProvider
public boolean isFinalNode()
public void setFinalNode(boolean finalNode)
public boolean isInitialNode()
public void setInitialNode(boolean initialNode)
public boolean containsPoint(java.awt.geom.Point2D point)
containsPoint
in interface NeptusGraphElement<O>
public boolean isSelected()
isSelected
in interface NeptusGraphElement<O>
public void setSelected(boolean selected)
setSelected
in interface NeptusGraphElement<O>
public int getMaxX()
getMaxX
in interface NeptusNodeElement<O>
public int getMaxY()
getMaxY
in interface NeptusNodeElement<O>
public void cleanup()
cleanup
in interface NeptusGraphElement<O>
public java.lang.String toString()
toString
in class java.lang.Object
public void addIncomingEdge(NeptusEdgeElement<O> edge)
addIncomingEdge
in interface NeptusNodeElement<O>
public void addOutgoingEdge(NeptusEdgeElement<O> edge)
addOutgoingEdge
in interface NeptusNodeElement<O>
public void removeIncomingEdge(NeptusEdgeElement edge)
removeIncomingEdge
in interface NeptusNodeElement<O>
public void removeOutgoingEdge(NeptusEdgeElement edge)
removeOutgoingEdge
in interface NeptusNodeElement<O>
public java.util.LinkedHashMap<java.lang.String,NeptusEdgeElement<O>> getIncomingEdges()
getIncomingEdges
in interface NeptusNodeElement<O>
public java.util.LinkedHashMap<java.lang.String,NeptusEdgeElement<O>> getOutgoingEdges()
getOutgoingEdges
in interface NeptusNodeElement<O>
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.