uk.ac.man.cs.mig.coode.owlviz.ui.renderer
Class OWLClsNodeRenderer
java.lang.Object
uk.ac.man.cs.mig.coode.owlviz.ui.renderer.OWLClsNodeRenderer
- All Implemented Interfaces:
- NodeRenderer
public class OWLClsNodeRenderer
- extends Object
- implements NodeRenderer
User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Feb 5, 2004
matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOMECLS_NAME
public static final String SOMECLS_NAME
- See Also:
- Constant Field Values
ALLCLS_NAME
public static final String ALLCLS_NAME
- See Also:
- Constant Field Values
MINCARDI_NAME
public static final String MINCARDI_NAME
- See Also:
- Constant Field Values
MAXCARDI_NAME
public static final String MAXCARDI_NAME
- See Also:
- Constant Field Values
CARDI_NAME
public static final String CARDI_NAME
- See Also:
- Constant Field Values
INTERSECTION_NAME
public static final String INTERSECTION_NAME
- See Also:
- Constant Field Values
UNION_NAME
public static final String UNION_NAME
- See Also:
- Constant Field Values
COMPLEMENT_NAME
public static final String COMPLEMENT_NAME
- See Also:
- Constant Field Values
HAS_NAME
public static final String HAS_NAME
- See Also:
- Constant Field Values
ENUM_NAME
public static final String ENUM_NAME
- See Also:
- Constant Field Values
OWLClsNodeRenderer
public OWLClsNodeRenderer(Controller controller,
VisualisedObjectManager manager,
NodeLabelRenderer labelRenderer,
OWLModelManager owlModelManager)
setupArrows
protected void setupArrows()
drawArrows
protected void drawArrows(Graphics2D g2,
Shape nodeShape,
Object userObject)
renderNode
public void renderNode(Graphics2D g2,
Node node,
boolean forPrinting,
boolean drawDetail)
- Generic shape renderer. Typically, the shape of the
Node
will be a Rectangle or an Ellipse.
- Specified by:
renderNode in interface NodeRenderer
- Parameters:
node - The Node being rendered.g2 - The Graphics2D object on to which the Node should be rendered.forPrinting - A flag to indicate if the graphics are being drawn to produce an
image for printing, or to draw onto the screen.drawDetail - A flag to indicate whether or not to draw detail such as
text - this flag will be set to true when views such as thumbnail
views are drawn and detail such as text is irrelevant.
getPreferredSize
public Dimension getPreferredSize(Node node,
Dimension size)
- Compute the size of the
Node
- Specified by:
getPreferredSize in interface NodeRenderer
- Parameters:
node - The Node whose size is to be determined.size - A Dimension may be passed to this method to
prevent a new Dimension object being created, which will
be populated with the preferred size. May be null in which
case a new Dimension object will be created and returned.
- Returns:
- The preferred size of the
Node
getFillColor
protected Color getFillColor(Object obj)
getLineColor
protected Color getLineColor(Object obj)
getTextColor
protected Color getTextColor(Object obj)
areClassesDisjoint
protected int areClassesDisjoint(org.semanticweb.owlapi.model.OWLClass cls1,
org.semanticweb.owlapi.model.OWLClass cls2)
- Determines if a class is disjoint from another class
- Parameters:
cls1 - The class to which we want to know if another class is disjointcls2 - The class we want to test is disjoint to cls1
- Returns:
true if cls2 is disjoint to cls1 ,
false if cls2 is not disjoint to cls1.
Submit a bug report or feature request
For further API reference and developer documentation, see Protege 4 Developer Documentation.
Copyright © 2010 Stanford Center for Biomedical Informatics Research