Class AigLink
java.lang.Object
Representation of a link/edge in a graph.
Implements and handles all options relevant for the aig-graph-component
- Author:
- Lars Bengel
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getColor()
Returns the color associated with the element.int
hashCode()
boolean
Returns whether the element is deletable.boolean
Returns whether the label of the element is editable.void
Sets the color associated with the element.void
setDeletable
(boolean deletable) Sets whether the element is deletable.void
setLabelEditable
(boolean labelEditable) Sets whether the label of the element is editable.toJson()
Converts the link to a JSON-StringtoJson
(boolean deletable, boolean labelEditable) Converts the link to a JSON-String while overriding the options with the given valuestoString()
-
Constructor Details
-
AigLink
-
AigLink
-
-
Method Details
-
toJson
Converts the link to a JSON-String while overriding the options with the given values- Parameters:
deletable
- whether the link should be deletablelabelEditable
- whether the link label should be editable- Returns:
- JSON-String representation of this link
-
toJson
Converts the link to a JSON-String- Returns:
- JSON-String representation of this link
-
isDeletable
public boolean isDeletable()Returns whether the element is deletable.- Returns:
true
if the element can be deleted;false
otherwise.
-
setDeletable
public void setDeletable(boolean deletable) Sets whether the element is deletable.- Parameters:
deletable
-true
to allow deletion of the element;false
to prevent it.
-
isLabelEditable
public boolean isLabelEditable()Returns whether the label of the element is editable.- Returns:
true
if the label can be edited;false
otherwise.
-
setLabelEditable
public void setLabelEditable(boolean labelEditable) Sets whether the label of the element is editable.- Parameters:
labelEditable
-true
to make the label editable;false
to make it read-only.
-
getColor
-
setColor
-
toString
- Overrides:
toString
in classDirectedEdge<AigNode>
-
equals
-
hashCode
-