- java.lang.Object
-
- org.logicng.io.graphical.GraphicalEdgeStyle
-
public class GraphicalEdgeStyle extends Object
The style of an edge in a graphical representation of a formula, BDD, or graph. The style consists of the line type and the color of the edge.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphicalEdgeStyle.EdgeTypeThe different edge types.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphicalEdgeStylebold(GraphicalColor color)Constructs a new bold edge style with a color.static GraphicalEdgeStyledotted(GraphicalColor color)Constructs a new dotted edge style with a color.booleanequals(Object o)GraphicalColorgetColor()Returns the color of this edge style.GraphicalEdgeStyle.EdgeTypegetType()Returns the type of this edge style.inthashCode()booleanhasStyle()Returns whether this style has any value set.static GraphicalEdgeStylenoStyle()Returns a special edge style which does not set any style, so the framework's (dot/Mermaid.js) default theming is applied.static GraphicalEdgeStylesolid(GraphicalColor color)Constructs a new solid edge style with a color.static GraphicalEdgeStylestyle(GraphicalEdgeStyle.EdgeType type, GraphicalColor color)Constructs a new edge style with a given edge type and color.StringtoString()
-
-
-
Method Detail
-
noStyle
public static GraphicalEdgeStyle noStyle()
Returns a special edge style which does not set any style, so the framework's (dot/Mermaid.js) default theming is applied.- Returns:
- special edge style which does not set any style
-
style
public static GraphicalEdgeStyle style(GraphicalEdgeStyle.EdgeType type, GraphicalColor color)
Constructs a new edge style with a given edge type and color.- Parameters:
type- the edge typecolor- the color- Returns:
- the new edge style
-
solid
public static GraphicalEdgeStyle solid(GraphicalColor color)
Constructs a new solid edge style with a color.- Parameters:
color- the color- Returns:
- the new edge style
-
dotted
public static GraphicalEdgeStyle dotted(GraphicalColor color)
Constructs a new dotted edge style with a color.- Parameters:
color- the color- Returns:
- the new edge style
-
bold
public static GraphicalEdgeStyle bold(GraphicalColor color)
Constructs a new bold edge style with a color.- Parameters:
color- the color- Returns:
- the new edge style
-
hasStyle
public boolean hasStyle()
Returns whether this style has any value set. If not it is equivalent toNO_EDGE_STYLE.- Returns:
- whether this style has any value set
-
getType
public GraphicalEdgeStyle.EdgeType getType()
Returns the type of this edge style.- Returns:
- the type of this edge style
-
getColor
public GraphicalColor getColor()
Returns the color of this edge style.- Returns:
- the color of this edge style
-
-