| com.jgraph.pad.graph.JGraphpadEdgeRenderer
JGraphpadEdgeRenderer | public class JGraphpadEdgeRenderer extends EdgeRenderer (Code) | | |
Field Summary | |
public static int | INSET Defines the default inset to render rich text. | protected boolean | isRichText | public 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. |
INSET | public static int INSET(Code) | | Defines the default inset to render rich text.
|
isRichText | protected boolean isRichText(Code) | | |
textPane | public static JTextPane textPane(Code) | | Holds the text pane to be used for rich text rendering.
|
userObject | protected Object userObject(Code) | | Holds the user object of the current cell.
|
JGraphpadEdgeRenderer | public JGraphpadEdgeRenderer()(Code) | | |
getAngleTol | public static int getAngleTol()(Code) | | |
getLabelSize | public Dimension getLabelSize(EdgeView view, String label)(Code) | | Returns the label size of the specified view in the given graph.
|
getVerticalAlignment | public int getVerticalAlignment(Map map)(Code) | | |
installAttributes | public void installAttributes(CellView view)(Code) | | Extends the parent's method to configure the renderer for displaying the
specified view.
Parameters: view - The view to configure the renderer for. |
paintLabel | protected void paintLabel(Graphics g, String label, Point2D p, boolean mainLabel)(Code) | | Paint the specified label for the current edgeview.
|
paintRichText | protected void paintRichText(Graphics g, int x, int y)(Code) | | Utility method to paint the rich text content for rich text values. This
implementation simulates rich text vertical alignment by translating the
graphics before painting the textPane.
Parameters: g - The graphics to paint the rich text content to. |
|
|