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

java.lang.Object
  extended by org.graphstream.ui.swingViewer.basicRenderer.shapes.Shape
      extended by org.graphstream.ui.swingViewer.basicRenderer.shapes.Arrow

public class Arrow
extends Shape


Constructor Summary
Arrow()
           
 
Method Summary
 void renderFill(Graphics2D g, GraphMetrics metrics)
          Render the filled part of the shape.
 void renderStroke(Graphics2D g, GraphMetrics metrics)
          Render the stroke of the shape.
 void setArrowLengthGu(int lengthGu)
           
 void setArrowWidthGu(int widthGu)
           
 void setFillColor(Color color)
           
 void setStrokeColor(Color color)
           
 
Methods inherited from class org.graphstream.ui.swingViewer.basicRenderer.shapes.Shape
render
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Arrow

public Arrow()
Method Detail

setArrowLengthGu

public void setArrowLengthGu(int lengthGu)

setArrowWidthGu

public void setArrowWidthGu(int widthGu)

setFillColor

public void setFillColor(Color color)

setStrokeColor

public void setStrokeColor(Color color)

renderFill

public void renderFill(Graphics2D g,
                       GraphMetrics metrics)
Description copied from class: Shape
Render the filled part of the shape.

Specified by:
renderFill in class Shape
Parameters:
g - The Swing graphics.

renderStroke

public void renderStroke(Graphics2D g,
                         GraphMetrics metrics)
Description copied from class: Shape
Render the stroke of the shape.

Specified by:
renderStroke in class Shape
Parameters:
g - The Swing graphics.


Copyright © 2011. All Rights Reserved.