org.graphstream.ui.swingViewer.basicRenderer.shapes
Class Shape

java.lang.Object
  extended by org.graphstream.ui.swingViewer.basicRenderer.shapes.Shape
Direct Known Subclasses:
Arrow

public abstract class Shape
extends Object


Constructor Summary
Shape()
           
 
Method Summary
 void render(Graphics2D g, GraphMetrics metrics)
          Same as calling renderStroke(Graphics2D,GraphMetrics) and renderFill(Graphics2D,GraphMetrics) at once.
abstract  void renderFill(Graphics2D g, GraphMetrics metrics)
          Render the filled part of the shape.
abstract  void renderStroke(Graphics2D g, GraphMetrics metrics)
          Render the stroke of the shape.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape

public Shape()
Method Detail

render

public void render(Graphics2D g,
                   GraphMetrics metrics)
Same as calling renderStroke(Graphics2D,GraphMetrics) and renderFill(Graphics2D,GraphMetrics) at once.

Parameters:
g - The Swing graphics.

renderStroke

public abstract void renderStroke(Graphics2D g,
                                  GraphMetrics metrics)
Render the stroke of the shape.

Parameters:
g - The Swing graphics.

renderFill

public abstract void renderFill(Graphics2D g,
                                GraphMetrics metrics)
Render the filled part of the shape.

Parameters:
g - The Swing graphics.


Copyright © 2011. All Rights Reserved.