com.gomjabbar.graph.swing
Class ArrowRelationRenderer

java.lang.Object
  |
  +--com.gomjabbar.graph.swing.ArrowRelationRenderer
All Implemented Interfaces:
GraphRelationRenderer

public class ArrowRelationRenderer
extends java.lang.Object
implements GraphRelationRenderer


Field Summary
static java.lang.Double BIG_ANCHOR_SIZE
           
static java.lang.Double BIG_ARROW_SIZE
           
static java.lang.Double DEFAULT_ANCHOR_SIZE
           
static java.lang.Double DEFAULT_ARROW_SIZE
           
static java.lang.Boolean DEFAULT_RIGHT_ANGLES
           
static java.lang.Boolean NO_RIGHT_ANGLES
           
static java.lang.Boolean USE_RIGHT_ANGLES
           
 
Constructor Summary
ArrowRelationRenderer()
           
ArrowRelationRenderer(double arrow_size, double anchor_size, boolean useRightAngles)
           
 
Method Summary
 int containsPoint(GraphRelation r, GraphElement[] e, java.awt.geom.Point2D.Double[] element_location, GraphRelationRole[] grr, GraphElementRenderer[] er, double x, double y)
           
 void invalidate()
           
 void paint(java.awt.Graphics g, GraphRelation r, GraphElement[] e, java.awt.geom.Point2D.Double[] element_location, GraphRelationRole[] grr, GraphElementRenderer[] er, java.awt.Color links, java.awt.Color anchor, java.awt.Color texts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ARROW_SIZE

public static final java.lang.Double DEFAULT_ARROW_SIZE

DEFAULT_ANCHOR_SIZE

public static final java.lang.Double DEFAULT_ANCHOR_SIZE

BIG_ARROW_SIZE

public static final java.lang.Double BIG_ARROW_SIZE

BIG_ANCHOR_SIZE

public static final java.lang.Double BIG_ANCHOR_SIZE

USE_RIGHT_ANGLES

public static final java.lang.Boolean USE_RIGHT_ANGLES

NO_RIGHT_ANGLES

public static final java.lang.Boolean NO_RIGHT_ANGLES

DEFAULT_RIGHT_ANGLES

public static final java.lang.Boolean DEFAULT_RIGHT_ANGLES
Constructor Detail

ArrowRelationRenderer

public ArrowRelationRenderer(double arrow_size,
                             double anchor_size,
                             boolean useRightAngles)

ArrowRelationRenderer

public ArrowRelationRenderer()
Method Detail

invalidate

public void invalidate()
Specified by:
invalidate in interface GraphRelationRenderer

paint

public void paint(java.awt.Graphics g,
                  GraphRelation r,
                  GraphElement[] e,
                  java.awt.geom.Point2D.Double[] element_location,
                  GraphRelationRole[] grr,
                  GraphElementRenderer[] er,
                  java.awt.Color links,
                  java.awt.Color anchor,
                  java.awt.Color texts)
Specified by:
paint in interface GraphRelationRenderer

containsPoint

public int containsPoint(GraphRelation r,
                         GraphElement[] e,
                         java.awt.geom.Point2D.Double[] element_location,
                         GraphRelationRole[] grr,
                         GraphElementRenderer[] er,
                         double x,
                         double y)
Specified by:
containsPoint in interface GraphRelationRenderer