Protege 4.1.0

uk.ac.man.cs.mig.util.graph.renderer.impl
Class DefaultEdgeRenderer

java.lang.Object
  extended by uk.ac.man.cs.mig.util.graph.renderer.impl.DefaultEdgeRenderer
All Implemented Interfaces:
EdgeRenderer
Direct Known Subclasses:
OWLClsEdgeRenderer

public class DefaultEdgeRenderer
extends Object
implements EdgeRenderer

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Jan 14, 2004

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm


Constructor Summary
DefaultEdgeRenderer(Controller controller)
           
 
Method Summary
static double getEdgeBrightness()
          Gets the brightness of edges in the graph.
protected  Color getEdgeColor(Edge edge, boolean forPrinting)
           
protected  Stroke getEdgeStroke(Edge edge, boolean forPrinting)
           
 void renderEdge(Graphics2D g2, Edge edge, boolean forPrinting, boolean drawDetail)
          Called to render an Edge.
static void setEdgeBrightness(double brightness)
          Sets the brightness (level of gray) of edges in the graph.
protected static void updateEdgeColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEdgeRenderer

public DefaultEdgeRenderer(Controller controller)
Method Detail

getEdgeBrightness

public static double getEdgeBrightness()
Gets the brightness of edges in the graph.

Returns:
The edge brightness. A brightness of 0.0 is equivalent to black, a brightness of 1.0 is equivalent to white.

setEdgeBrightness

public static void setEdgeBrightness(double brightness)
Sets the brightness (level of gray) of edges in the graph.

Parameters:
brightness - The brightness. A brightness of 0.0 is equivalent to black, a brightness of 1.0 is equivalent to white. The brightness is clipped between 0.0 and 1.0

updateEdgeColor

protected static void updateEdgeColor()

renderEdge

public void renderEdge(Graphics2D g2,
                       Edge edge,
                       boolean forPrinting,
                       boolean drawDetail)
Called to render an Edge. Typically, the Shape will be a GeneralPath.

Specified by:
renderEdge in interface EdgeRenderer
Parameters:
edge - The Edge to be rendered.
g2 - The Graphics2D object on to which the Edge 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.

getEdgeColor

protected Color getEdgeColor(Edge edge,
                             boolean forPrinting)

getEdgeStroke

protected Stroke getEdgeStroke(Edge edge,
                               boolean forPrinting)

Protege 4.1.0

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