java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.kgml.KeggGmlHelper
All Implemented Interfaces:
HelperClass

public class KeggGmlHelper
extends Object
implements HelperClass
  • Constructor Details

    • KeggGmlHelper

      public KeggGmlHelper()
  • Method Details

    • setKeggId

      public static void setKeggId​(Graph graph, String id)
    • setKeggId

      public static void setKeggId​(Node n, String id)
    • setKeggId

      public static void setKeggId​(Node n, String id, int index)
    • getKeggId

      public static String getKeggId​(Graph graph)
    • getKeggId

      public static String getKeggId​(Node n)
    • getKeggIds

      public static ArrayList<IndexAndString> getKeggIds​(Node n)
    • setKeggOrg

      public static void setKeggOrg​(Graph graph, String org)
    • getKeggOrg

      public static String getKeggOrg​(Graph graph)
    • setKeggMapNumber

      public static void setKeggMapNumber​(Graph graph, String number)
    • getKeggMapNumber

      public static String getKeggMapNumber​(Graph graph)
    • setKeggTitle

      public static void setKeggTitle​(Graph graph, String title)
    • getKeggTitle

      public static String getKeggTitle​(Graph graph)
    • setKeggImageUrl

      public static void setKeggImageUrl​(Graph graph, String imageURL)
    • setKeggLinkUrl

      public static void setKeggLinkUrl​(Graph graph, String linkURL)
    • getKeggImageUrl

      public static String getKeggImageUrl​(Graph graph)
    • setKeggLinkUrl

      public static void setKeggLinkUrl​(Node n, String linkURL)
    • setKeggLinkUrl

      public static void setKeggLinkUrl​(Node n, int index, String linkURL)
    • getKeggImageUrl

      public static String getKeggImageUrl​(Node n)
    • getKeggLinkUrl

      public static String getKeggLinkUrl​(Graph graph)
    • getKeggLinkUrl

      public static String getKeggLinkUrl​(Node n)
    • getKeggLinkUrl

      public static String getKeggLinkUrl​(Node n, int index)
    • setKeggType

      public static void setKeggType​(Node n, String type)
    • setKeggType

      public static void setKeggType​(Node n, int index, String type)
    • getKeggType

      public static String getKeggType​(Node n)
    • getKeggType

      public static String getKeggType​(Node n, int index)
    • setKeggReaction

      public static void setKeggReaction​(Node n, int index, String id)
    • setKeggReactionProduct

      public static void setKeggReactionProduct​(Edge e, int index, String id)
    • setKeggReactionSubstrate

      public static void setKeggReactionSubstrate​(Edge e, int index, String id)
    • getKeggReactions

      public static ArrayList<IndexAndString> getKeggReactions​(Node n)
    • getKeggReactionSubstrates

      public static ArrayList<IndexAndString> getKeggReactionSubstrates​(Edge e)
    • getKeggReactionProducts

      public static ArrayList<IndexAndString> getKeggReactionProducts​(Edge e)
    • setKeggReactionType

      public static void setKeggReactionType​(Attributable nodeOrEdge, int index, String type)
    • getKeggReactionType

      public static String getKeggReactionType​(Attributable nodeOrEdge, int index)
    • getKeggReactionTypes

      public static ArrayList<IndexAndString> getKeggReactionTypes​(Attributable nodeOrEdge)
    • setKeggGraphicsTitle

      public static void setKeggGraphicsTitle​(Node n, String name)
    • getKeggGraphicsTitle

      public static String getKeggGraphicsTitle​(Node n)
    • setKeggGraphicsX

      public static void setKeggGraphicsX​(Node n, int xPosition)
    • getKeggGraphicsX

      public static int getKeggGraphicsX​(Node n)
    • setKeggGraphicsY

      public static void setKeggGraphicsY​(Node n, int yPosition)
    • getKeggGraphicsY

      public static int getKeggGraphicsY​(Node n)
    • setKeggGraphicsWidth

      public static void setKeggGraphicsWidth​(Node n, int width)
    • getKeggGraphicsWidth

      public static int getKeggGraphicsWidth​(Node n)
    • setKeggGraphicsHeight

      public static void setKeggGraphicsHeight​(Node n, int height)
    • getKeggGraphicsHeight

      public static int getKeggGraphicsHeight​(Node n)
    • setKeggGraphicsFgColor

      public static void setKeggGraphicsFgColor​(Node n, Color fgcolor)
    • getKeggGraphicsFgColor

      public static Color getKeggGraphicsFgColor​(Node n)
    • setKeggGraphicsBgColor

      public static void setKeggGraphicsBgColor​(Node n, Color bgcolor)
    • getKeggGraphicsBgColor

      public static Color getKeggGraphicsBgColor​(Node n)
    • setKeggGraphicsType

      public static void setKeggGraphicsType​(Node n, kgmlGraphicsType type)
    • getKeggGraphicsType

      public static kgmlGraphicsType getKeggGraphicsType​(Node n)
    • setRelationTypeInformation

      public static void setRelationTypeInformation​(Edge e, int index, RelationType rt)
    • getRelationTypes

      public static ArrayList<IndexAndString> getRelationTypes​(Edge e)
    • getRelationSubTypeNames

      public static ArrayList<IndexAndString> getRelationSubTypeNames​(Edge e)
    • getRelationSourceAndTargets

      public static ArrayList<IndexAndString> getRelationSourceAndTargets​(Edge e)
    • getRelationSourceTarget

      public static String getRelationSourceTarget​(Edge e, int index)
    • getRelationSubtypeName

      public static String getRelationSubtypeName​(Edge e, int index)
    • setRelationSubtypeName

      public static void setRelationSubtypeName​(Edge e, int index, String subtype)
    • setKeggGraphicsLineStyleMap

      public static void setKeggGraphicsLineStyleMap​(Edge e)
    • setKeggGraphicsLineStyleIndirect

      public static void setKeggGraphicsLineStyleIndirect​(Edge e)
    • setRelationSourceTargetInformation

      public static void setRelationSourceTargetInformation​(Edge e, int index, String srcKeggId, String tgtKeggId)
    • setRelationSrcTgtInformation

      public static void setRelationSrcTgtInformation​(Edge e, int i, IdRef e1, IdRef e2)
      Add information about source or target entity which requests a relation and thus the creation of an edge
      Parameters:
      e - The edge which will be processed
      i - The index, value needs to correspond to to the method call setRelationTypeInformation
      e1 - Source or Target entity which requests the edge creation (edge e)
      e2 - Source or Target entity which requests the edge creation (edge e)
      errors -
      warnings -
    • setEdgeLabel

      public static void setEdgeLabel​(Edge e, String label)
    • getNodesInsideThisNode

      public static Set<Node> getNodesInsideThisNode​(Node bigNode, Collection<Node> nodes, HashMap<Node,​Vector2d> node2upperLeftPos, HashMap<Node,​Vector2d> node2lowerRightPos)
      Find those nodes, which are located inside the "bigNode". A node is regarded to be "inside" a node, when the upper left point if the rectangle, defined by the node position and side is inside the surrounding of the "bigNode", and at the same time the lower-right point is located also in the bigNode.
      Parameters:
      node2lowerRightPos -
      node2upperLeftPos -
    • getIsPartOfGroup

      public static boolean getIsPartOfGroup​(Node n)
    • setIsPartOfGroup

      public static void setIsPartOfGroup​(Node n, boolean value)
    • setKeggGraphicsLineStyleInhibitionArrow

      public static void setKeggGraphicsLineStyleInhibitionArrow​(Edge e)