|
Protege 4.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.man.cs.mig.util.graph.renderer.impl.DefaultEdgeRenderer
public class DefaultEdgeRenderer
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 |
|---|
public DefaultEdgeRenderer(Controller controller)
| Method Detail |
|---|
public static double getEdgeBrightness()
public static void setEdgeBrightness(double brightness)
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.0protected static void updateEdgeColor()
public void renderEdge(Graphics2D g2,
Edge edge,
boolean forPrinting,
boolean drawDetail)
Edge. Typically, the Shape
will be a GeneralPath.
renderEdge in interface EdgeRendereredge - 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.
protected Color getEdgeColor(Edge edge,
boolean forPrinting)
protected Stroke getEdgeStroke(Edge edge,
boolean forPrinting)
|
Protege 4.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||