owltools.gfx
Class OWLGraphStrokeEdge

java.lang.Object
  extended by uk.ac.ebi.interpro.graphdraw.StrokeEdge<OWLGraphLayoutNode>
      extended by owltools.gfx.OWLGraphStrokeEdge
All Implemented Interfaces:
uk.ac.ebi.interpro.graphdraw.Edge<OWLGraphLayoutNode>, uk.ac.ebi.interpro.graphdraw.LayoutEdge<OWLGraphLayoutNode>

public final class OWLGraphStrokeEdge
extends uk.ac.ebi.interpro.graphdraw.StrokeEdge<OWLGraphLayoutNode>

Represents an edge in a layout graph Adapted from QuickGO

Author:
cjm

Nested Class Summary
static class OWLGraphStrokeEdge.SVGEdge
           
 
Field Summary
 
Fields inherited from class uk.ac.ebi.interpro.graphdraw.StrokeEdge
colour, route
 
Constructor Summary
OWLGraphStrokeEdge(OWLGraphLayoutNode parent, OWLGraphLayoutNode child, OWLGraphEdge oge, OWLGraphWrapper graph)
           
 
Method Summary
 boolean equals(Object obj)
           
static RelationType getRelationType(OWLGraphEdge owlGraphEdge, OWLGraphWrapper graph)
          Sets the value of relType based on OWLGraphEdge properties TODO : this is too hacky.
 int hashCode()
           
 Object serialise()
           
 
Methods inherited from class uk.ac.ebi.interpro.graphdraw.StrokeEdge
drawArrows, getChild, getParent, main, render, setChildArrow, setParentArrow, setRoute, standardArrow, standardArrow, standardArrow
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLGraphStrokeEdge

public OWLGraphStrokeEdge(OWLGraphLayoutNode parent,
                          OWLGraphLayoutNode child,
                          OWLGraphEdge oge,
                          OWLGraphWrapper graph)
Method Detail

getRelationType

public static RelationType getRelationType(OWLGraphEdge owlGraphEdge,
                                           OWLGraphWrapper graph)
Sets the value of relType based on OWLGraphEdge properties TODO : this is too hacky. Make this a soft configuration, e.g. an ontology with color properties

Parameters:
owlGraphEdge -
graph -
Returns:
relationtype or null

serialise

public Object serialise()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010-2012. All Rights Reserved.