public class Utilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
applyAll(java.awt.Insets insets,
float value)
Fill a the Insets properties to the same value.
|
static java.lang.String |
decodeColor(java.awt.Color color)
Decode a color.
|
static java.lang.String |
decodeColor(java.lang.String color)
Decode a color.
|
static java.util.Map<java.lang.String,java.util.List<IGraphMLNode>> |
getAllChildrenNodesByLabel(NodeParent nodeParent)
Return all the children nodes by their label if it exists.
|
static java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> |
getAllEdgesByLabel(GraphMLDiagram diagram)
Return all the edges by their label if it exists.
|
static java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> |
getAllFromEdgesByLabel(GraphMLNode node)
Return the edges originating from other nodes, if they have a label.
|
static java.util.Map<java.lang.String,java.util.List<IGraphMLNode>> |
getAllNodesByLabel(GraphMLDiagram diagram)
Return the nodes by their label if it exists.
|
static java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> |
getAllToEdgesByLabel(GraphMLNode node)
Return the edges originating from a node, if they have a label.
|
static java.util.Map<java.lang.String,IGraphMLNode> |
getChildrenNodesByLabel(NodeParent nodeParent)
Return the children nodes by their label if it exists.
|
static java.util.Map<java.lang.String,GraphMLEdge> |
getEdgesByID(GraphMLDiagram diagram)
Return the edges by their id.
|
static java.util.Map<java.lang.String,GraphMLEdge> |
getEdgesByLabel(GraphMLDiagram diagram)
Return the edges by their label if it exists.
|
static java.util.Map<java.lang.String,GraphMLEdge> |
getFromEdgesByLabel(GraphMLNode node)
Return the edges originating from other nodes, if they have a label.
|
static java.util.Map<java.lang.String,IGraphMLNode> |
getNodesByLabel(GraphMLDiagram diagram)
Return the nodes by their label if it exists.
|
static java.util.Map<java.lang.String,GraphMLEdge> |
getToEdgesByLabel(GraphMLNode node)
Return the edges originating from a node, if they have a label.
|
public static java.lang.String decodeColor(java.awt.Color color)
color
- the colorpublic static java.lang.String decodeColor(java.lang.String color)
color
- the colorpublic static void applyAll(java.awt.Insets insets, float value)
insets
- the insetsvalue
- the valuepublic static java.util.Map<java.lang.String,java.util.List<IGraphMLNode>> getAllNodesByLabel(GraphMLDiagram diagram)
diagram
- the diagrampublic static java.util.Map<java.lang.String,IGraphMLNode> getNodesByLabel(GraphMLDiagram diagram)
diagram
- the diagrampublic static java.util.Map<java.lang.String,java.util.List<IGraphMLNode>> getAllChildrenNodesByLabel(NodeParent nodeParent)
nodeParent
- the parentpublic static java.util.Map<java.lang.String,IGraphMLNode> getChildrenNodesByLabel(NodeParent nodeParent)
nodeParent
- the parentpublic static java.util.Map<java.lang.String,GraphMLEdge> getEdgesByID(GraphMLDiagram diagram)
diagram
- the diagrampublic static java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> getAllEdgesByLabel(GraphMLDiagram diagram)
diagram
- the diagrampublic static java.util.Map<java.lang.String,GraphMLEdge> getEdgesByLabel(GraphMLDiagram diagram)
diagram
- the diagrampublic static java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> getAllFromEdgesByLabel(GraphMLNode node)
node
- the nodepublic static java.util.Map<java.lang.String,GraphMLEdge> getFromEdgesByLabel(GraphMLNode node)
node
- the nodepublic static java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> getAllToEdgesByLabel(GraphMLNode node)
node
- the nodepublic static java.util.Map<java.lang.String,GraphMLEdge> getToEdgesByLabel(GraphMLNode node)
node
- the nodeCopyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence