Inheritance diagram for org.jgraph.graph.EdgeRenderer:
Public Member Functions | |
EdgeRenderer () | |
Component | getRendererComponent (JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) |
boolean | intersects (JGraph graph, CellView value, Rectangle rect) |
Rectangle2D | getBounds (CellView value) |
Rectangle2D | getLabelBounds (JGraph paintingContext, EdgeView view) |
Rectangle2D | getExtraLabelBounds (JGraph paintingContext, EdgeView view, int index) |
Rectangle2D | getLabelBounds (Point2D p, Dimension d, String label) |
Point2D | getLabelPosition (EdgeView view) |
Point2D | getExtraLabelPosition (EdgeView view, int index) |
Dimension | getExtraLabelSize (JGraph paintingContext, EdgeView view, int index) |
Dimension | getLabelSize (EdgeView view, String label) |
Rectangle2D | getPaintBounds (EdgeView view) |
void | paint (Graphics g) |
Color | getGradientColor () |
void | setGradientColor (Color gradientColor) |
void | validate () |
void | revalidate () |
void | repaint (long tm, int x, int y, int width, int height) |
void | repaint (Rectangle r) |
void | firePropertyChange (String propertyName, byte oldValue, byte newValue) |
void | firePropertyChange (String propertyName, char oldValue, char newValue) |
void | firePropertyChange (String propertyName, short oldValue, short newValue) |
void | firePropertyChange (String propertyName, int oldValue, int newValue) |
void | firePropertyChange (String propertyName, long oldValue, long newValue) |
void | firePropertyChange (String propertyName, float oldValue, float newValue) |
void | firePropertyChange (String propertyName, double oldValue, double newValue) |
void | firePropertyChange (String propertyName, boolean oldValue, boolean newValue) |
Public Attributes | |
boolean | simpleExtraLabels = true |
Font | extraLabelFont = null |
Protected Member Functions | |
Point2D | getLabelPosition (Point2D pos) |
void | installAttributes (CellView view) |
boolean | isFillable (int decoration) |
void | paintSelectionBorder (Graphics g) |
void | translateGraphics (Graphics g) |
void | paintLabel (Graphics g, String label, Point2D p, boolean mainLabel) |
Shape | createShape () |
Shape | createLineEnd (int size, int style, Point2D src, Point2D dst) |
void | firePropertyChange (String propertyName, Object oldValue, Object newValue) |
Protected Attributes | |
transient FontMetrics | metrics |
transient JGraph | graph |
transient EdgeView | view |
transient int | beginDeco |
transient int | endDeco |
transient int | beginSize |
transient int | endSize |
transient int | lineStyle |
transient float | lineWidth |
transient boolean | labelBorder |
transient boolean | beginFill |
transient boolean | endFill |
transient boolean | focus |
transient boolean | selected |
transient boolean | preview |
transient boolean | opaque |
transient boolean | childrenSelected |
transient boolean | labelTransformEnabled |
transient Color | borderColor |
transient Color | defaultForeground |
transient Color | defaultBackground |
transient Color | fontColor |
transient float[] | lineDash |
transient float | dashOffset = 0.0f |
transient Color | gradientColor = null |
Bezier | bezier |
Spline2D | spline |
Static Protected Attributes | |
static transient Graphics | fontGraphics |
Package Functions | |
void | setView (CellView value) |
Static Package Functions | |
[static initializer] | |
Private Member Functions | |
boolean | isLabelTransformEnabled () |
boolean | isLabelTransform (String label) |
double | getLabelAngle (String label) |
|
Constructs a renderer that may be used to render edges. |
|
|
|
Paint the current view's direction. Sets tmpPoint as a side-effect such that the invoking method can use it to determine the connection point to this decoration. |
|
Returns the shape that represents the current edge in the context of the current graph. This method sets the global beginShape, lineShape and endShape variables as a side-effect. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Returns the bounds of the edge shape. |
|
Returns the label bounds of the specified view in the given graph. Note: The index is the position of the String object for the label in the extra labels array of the view. |
|
Returns the label position of the specified view in the given graph. |
|
Returns the label size of the specified view in the given graph. |
|
|
|
Calculates the angle at which graphics should be rotated to paint label along the edge. Before calling this method always check that transform should be applied using }
|
|
Returns the label bounds of the specified view in the given graph. |
|
Returns the label bounds of the specified view in the given graph. |
|
Returns the label position of the specified view in the given graph. |
|
Returns the label position of the specified view in the given graph. |
|
Returns the label size of the specified view in the given graph. |
|
Returns the bounds of the edge shape without label |
|
Configure and return the renderer based on the passed in components. The value is typically set from messaging the graph with
Implements org.jgraph.graph.CellViewRenderer. |
|
Installs the attributes of specified cell in this renderer instance. This means, retrieve every published key from the cells hashtable and set global variables or superclass properties accordingly.
|
|
Returns true if the edge shape intersects the given rectangle. |
|
|
|
Estimates whether the transform for label should be applied. With the transform, the label will be painted along the edge. To apply transform, rotate graphics by the angle returned from getLabelAngle
|
|
|
|
Paint the renderer. |
|
Paint the specified label for the current edgeview. |
|
Provided for subclassers to paint a selection border. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
|
|
Sets view to work with, caching necessary values until the next call of this method or until some other methods with explicitly specified different view |
|
|
|
Overridden for performance reasons. See the Implementation Note for more information. |
|
Painting attributes of the current edgeview |
|
|
|
|
|
|
|
Color attributes of the current edgeview. This components foreground is set to the edgecolor, the fontColor is in an extra variable. If the fontColor is null, the current foreground is used. The default background instead is used for text and is not visible if the label is not visible or if opaque is true. |
|
|
|
Contains the current dash offset. Null means no offset. |
|
|
|
|
|
|
|
|
|
|
|
Override this if you want the extra labels to appear in a special fontJ |
|
|
|
|
|
Static Graphics used for Font Metrics |
|
The gradient color of the edge |
|
Cache the current graph for drawing |
|
Boolean attributes of the current edgeview. Fill flags are checked for valid decorations. |
|
|
|
Contains the current dash pattern. Null means no pattern. |
|
|
|
Width of the current edge view |
|
Reference to the font metrics of the above |
|
|
|
|
|
|
|
A switch for painting the extra labels |
|
|
|
Cache the current edgeview for drawing |