|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.jgraph.graph.EdgeRenderer
com.jgraph.pad.graph.JGraphpadEdgeRenderer
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
static int |
INSET
Defines the default inset to render rich text. |
protected boolean |
isRichText
|
static JTextPane |
textPane
Holds the text pane to be used for rich text rendering. |
protected Object |
userObject
Holds the user object of the current cell. |
| Fields inherited from class org.jgraph.graph.EdgeRenderer |
beginDeco, beginFill, beginSize, bezier, borderColor, childrenSelected, dashOffset, defaultBackground, defaultForeground, endDeco, endFill, endSize, extraLabelFont, focus, fontColor, fontGraphics, gradientColor, graph, gridColor, highlightColor, isMoveBelowZero, labelBorder, labelTransformEnabled, LABELWIDTHBUFFER, lineDash, lineStyle, lineWidth, lockedHandleColor, metrics, opaque, preview, selected, simpleExtraLabels, spline, view |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JGraphpadEdgeRenderer()
|
|
| Method Summary | |
static int |
getAngleTol()
|
Dimension |
getLabelSize(org.jgraph.graph.EdgeView view,
String label)
Returns the label size of the specified view in the given graph. |
int |
getVerticalAlignment(Map map)
|
void |
installAttributes(org.jgraph.graph.CellView view)
Extends the parent's method to configure the renderer for displaying the specified view. |
protected void |
paintLabel(Graphics g,
String label,
Point2D p,
boolean mainLabel)
Paint the specified label for the current edgeview. |
protected void |
paintRichText(Graphics g,
int x,
int y)
Utility method to paint the rich text content for rich text values. |
void |
setText(String text)
Defines the single line of text this component will display. |
| Methods inherited from class org.jgraph.graph.EdgeRenderer |
createLineEnd, createShape, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getExtraLabelBounds, getExtraLabelPosition, getExtraLabelSize, getGradientColor, getLabelBounds, getLabelBounds, getLabelPosition, getLabelPosition, getPaintBounds, getRendererComponent, intersects, isFillable, paint, paintSelectionBorder, repaint, repaint, revalidate, setGradientColor, translateGraphics, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static JTextPane textPane
protected boolean isRichText
public static int INSET
protected Object userObject
| Constructor Detail |
public JGraphpadEdgeRenderer()
| Method Detail |
protected void paintRichText(Graphics g,
int x,
int y)
g - The graphics to paint the rich text content to.
protected void paintLabel(Graphics g,
String label,
Point2D p,
boolean mainLabel)
public Dimension getLabelSize(org.jgraph.graph.EdgeView view,
String label)
public void setText(String text)
The default value of this property is null.
This is a JavaBeans bound property.
#setVerticalTextPosition,
#setHorizontalTextPosition,
#setIconpublic void installAttributes(org.jgraph.graph.CellView view)
view - The view to configure the renderer for.public int getVerticalAlignment(Map map)
public static int getAngleTol()
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||