| javax.swing.JComponent org.jgraph.graph.EdgeRenderer
Constructor Summary | |
public | EdgeRenderer() Constructs a renderer that may be used to render edges. |
Method Summary | |
protected Shape | createLineEnd(int size, int style, Point2D src, Point2D dst) Paint the current view's direction. | protected Shape | createShape() Returns the shape that represents the current edge in the context of the
current graph. | protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, byte oldValue, byte newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, char oldValue, char newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, short oldValue, short newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, int oldValue, int newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, long oldValue, long newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, float oldValue, float newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, double oldValue, double newValue) Overridden for performance reasons. | public void | firePropertyChange(String propertyName, boolean oldValue, boolean newValue) Overridden for performance reasons. | public Rectangle2D | getBounds(CellView value) Returns the bounds of the edge shape. | public Rectangle2D | getExtraLabelBounds(JGraph paintingContext, EdgeView view, int index) Returns the label bounds of the specified view in the given graph. | public Point2D | getExtraLabelPosition(EdgeView view, int index) Returns the label position of the specified view in the given graph. | public Dimension | getExtraLabelSize(JGraph paintingContext, EdgeView view, int index) Returns the label size of the specified view in the given graph. | public Color | getGradientColor() | public Rectangle2D | getLabelBounds(JGraph paintingContext, EdgeView view) Returns the label bounds of the specified view in the given graph. | public Rectangle2D | getLabelBounds(Point2D p, Dimension d, String label) Returns the label bounds of the specified view in the given graph. | public Point2D | getLabelPosition(EdgeView view) Returns the label position of the specified view in the given graph. | protected Point2D | getLabelPosition(Point2D pos) Returns the label position of the specified view in the given graph. | public Dimension | getLabelSize(EdgeView view, String label) Returns the label size of the specified view in the given graph. | public Rectangle2D | getPaintBounds(EdgeView view) | protected Point2D | getRelativeLabelPosition(EdgeView edge, Point2D geometry) | public Component | getRendererComponent(JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) Configure and return the renderer based on the passed in components. | protected void | installAttributes(CellView view) Installs the attributes of specified cell in this renderer instance. | public boolean | intersects(JGraph graph, CellView value, Rectangle rect) Returns true if the edge shape intersects the given rectangle. | protected boolean | isFillable(int decoration) | public void | paint(Graphics g) Paint the renderer. | protected void | paintLabel(Graphics g, String label, Point2D p, boolean mainLabel) Paint the specified label for the current edgeview. | protected void | paintSelectionBorder(Graphics g) Provided for subclassers to paint a selection border. | public void | repaint(long tm, int x, int y, int width, int height) Overridden for performance reasons. | public void | repaint(Rectangle r) Overridden for performance reasons. | public void | revalidate() Overridden for performance reasons. | public void | setGradientColor(Color gradientColor) | void | setView(CellView value) | protected void | translateGraphics(Graphics g) | public void | validate() Overridden for performance reasons. |
beginDecoendDecobeginSizeendSizelineStyle | protected transient int beginDecoendDecobeginSizeendSizelineStyle(Code) | | Painting attributes of the current edgeview
|
borderColordefaultForegrounddefaultBackgroundfontColor | protected transient Color borderColordefaultForegrounddefaultBackgroundfontColor(Code) | | 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.
|
dashOffset | protected transient float dashOffset(Code) | | Contains the current dash offset. Null means no offset.
|
extraLabelFont | public Font extraLabelFont(Code) | | Override this if you want the extra labels to appear in a special fontJ
|
fontGraphics | protected static transient Graphics fontGraphics(Code) | | Static Graphics used for Font Metrics
|
gradientColor | protected transient Color gradientColor(Code) | | The gradient color of the edge
|
gridColor | protected transient Color gridColor(Code) | | The color of the graph grid
|
highlightColor | protected transient Color highlightColor(Code) | | The color of highlighted cells
|
labelBorderbeginFillendFillfocusselectedpreviewopaquechildrenSelectedlabelTransformEnabledisMoveBelowZero | protected transient boolean labelBorderbeginFillendFillfocusselectedpreviewopaquechildrenSelectedlabelTransformEnabledisMoveBelowZero(Code) | | Boolean attributes of the current edgeview. Fill flags are checked for
valid decorations.
|
lineDash | protected transient float[] lineDash(Code) | | Contains the current dash pattern. Null means no pattern.
|
lineWidth | protected transient float lineWidth(Code) | | Width of the current edge view
|
lockedHandleColor | protected transient Color lockedHandleColor(Code) | | The color of the second available handle
|
metrics | protected transient FontMetrics metrics(Code) | | Reference to the font metrics of the above
|
simpleExtraLabels | public boolean simpleExtraLabels(Code) | | A switch for painting the extra labels
|
view | protected transient EdgeView view(Code) | | Cache the current edgeview for drawing
|
EdgeRenderer | public EdgeRenderer()(Code) | | Constructs a renderer that may be used to render edges.
|
createLineEnd | protected Shape createLineEnd(int size, int style, Point2D src, Point2D dst)(Code) | | 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.
|
createShape | protected Shape createShape()(Code) | | 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.
|
firePropertyChange | public void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
firePropertyChange | public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
firePropertyChange | public void firePropertyChange(String propertyName, short oldValue, short newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
firePropertyChange | public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
firePropertyChange | public void firePropertyChange(String propertyName, long oldValue, long newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
firePropertyChange | public void firePropertyChange(String propertyName, float oldValue, float newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
firePropertyChange | public void firePropertyChange(String propertyName, double oldValue, double newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
firePropertyChange | public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
getExtraLabelBounds | public Rectangle2D getExtraLabelBounds(JGraph paintingContext, EdgeView view, int index)(Code) | | 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.
|
getExtraLabelPosition | public Point2D getExtraLabelPosition(EdgeView view, int index)(Code) | | Returns the label position of the specified view in the given graph.
|
getExtraLabelSize | public Dimension getExtraLabelSize(JGraph paintingContext, EdgeView view, int index)(Code) | | Returns the label size of the specified view in the given graph.
|
getGradientColor | public Color getGradientColor()(Code) | | Returns the gradientColor. |
getLabelBounds | public Rectangle2D getLabelBounds(JGraph paintingContext, EdgeView view)(Code) | | Returns the label bounds of the specified view in the given graph.
|
getLabelPosition | public Point2D getLabelPosition(EdgeView view)(Code) | | Returns the label position of the specified view in the given graph.
|
getLabelPosition | protected Point2D getLabelPosition(Point2D pos)(Code) | | Returns the label position of the specified view in the given graph.
|
getRendererComponent | public Component getRendererComponent(JGraph graph, CellView view, boolean sel, boolean focus, boolean preview)(Code) | | Configure and return the renderer based on the passed in components. The
value is typically set from messaging the graph with
convertValueToString .
Parameters: graph - the graph that that defines the rendering context. Parameters: view - the cell view that should be rendered. Parameters: sel - whether the object is selected. Parameters: focus - whether the object has the focus. Parameters: preview - whether we are drawing a preview. the component used to render the value. |
installAttributes | protected void installAttributes(CellView view)(Code) | | 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.
Parameters: view - the cell view to retrieve the attribute values from. |
intersects | public boolean intersects(JGraph graph, CellView value, Rectangle rect)(Code) | | Returns true if the edge shape intersects the given rectangle.
|
isFillable | protected boolean isFillable(int decoration)(Code) | | |
paintLabel | protected void paintLabel(Graphics g, String label, Point2D p, boolean mainLabel)(Code) | | Paint the specified label for the current edgeview.
|
paintSelectionBorder | protected void paintSelectionBorder(Graphics g)(Code) | | Provided for subclassers to paint a selection border.
|
repaint | public void repaint(long tm, int x, int y, int width, int height)(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
revalidate | public void revalidate()(Code) | | Overridden for performance reasons. See the Implementation Note for more information.
|
setGradientColor | public void setGradientColor(Color gradientColor)(Code) | | Parameters: gradientColor - The gradientColor to set. |
setView | void setView(CellView value)(Code) | | 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
|
Methods inherited from javax.swing.JComponent | public void addAncestorListener(AncestorListener listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void computeVisibleRect(Rectangle visibleRect)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public JToolTip createToolTip()(Code)(Java Doc) public void disable()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc) protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws java.beans.PropertyVetoException(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) final public ActionMap getActionMap()(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public AncestorListener[] getAncestorListeners()(Code)(Java Doc) public boolean getAutoscrolls()(Code)(Java Doc) public int getBaseline(int width, int height)(Code)(Java Doc) public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc) public Border getBorder()(Code)(Java Doc) public Rectangle getBounds(Rectangle rv)(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc) public JPopupMenu getComponentPopupMenu()(Code)(Java Doc) public int getConditionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc) public int getDebugGraphicsOptions()(Code)(Java Doc) public static Locale getDefaultLocale()(Code)(Java Doc) public FontMetrics getFontMetrics(Font font)(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public boolean getInheritsPopupMenu()(Code)(Java Doc) final public InputMap getInputMap(int condition)(Code)(Java Doc) final public InputMap getInputMap()(Code)(Java Doc) public InputVerifier getInputVerifier()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public Insets getInsets(Insets insets)(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Point getLocation(Point rv)(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Component getNextFocusableComponent()(Code)(Java Doc) public Point getPopupLocation(MouseEvent event)(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc) public JRootPane getRootPane()(Code)(Java Doc) public Dimension getSize(Dimension rv)(Code)(Java Doc) public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public String getToolTipText(MouseEvent event)(Code)(Java Doc) public Container getTopLevelAncestor()(Code)(Java Doc) public TransferHandler getTransferHandler()(Code)(Java Doc) public String getUIClassID()(Code)(Java Doc) public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc) public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc) public Rectangle getVisibleRect()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getX()(Code)(Java Doc) public int getY()(Code)(Java Doc) public void grabFocus()(Code)(Java Doc) public boolean isDoubleBuffered()(Code)(Java Doc) public static boolean isLightweightComponent(Component c)(Code)(Java Doc) public boolean isManagingFocus()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isOptimizedDrawingEnabled()(Code)(Java Doc) final public boolean isPaintingForPrint()(Code)(Java Doc) public boolean isPaintingTile()(Code)(Java Doc) public boolean isRequestFocusEnabled()(Code)(Java Doc) public boolean isValidateRoot()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) protected void paintBorder(Graphics g)(Code)(Java Doc) protected void paintChildren(Graphics g)(Code)(Java Doc) protected void paintComponent(Graphics g)(Code)(Java Doc) public void paintImmediately(int x, int y, int w, int h)(Code)(Java Doc) public void paintImmediately(Rectangle r)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printAll(Graphics g)(Code)(Java Doc) protected void printBorder(Graphics g)(Code)(Java Doc) protected void printChildren(Graphics g)(Code)(Java Doc) protected void printComponent(Graphics g)(Code)(Java Doc) protected void processComponentKeyEvent(KeyEvent e)(Code)(Java Doc) protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc) public void removeAncestorListener(AncestorListener listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public boolean requestDefaultFocus()(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public boolean requestFocus(boolean temporary)(Code)(Java Doc) public boolean requestFocusInWindow()(Code)(Java Doc) protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc) public void resetKeyboardActions()(Code)(Java Doc) public void reshape(int x, int y, int w, int h)(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) final public void setActionMap(ActionMap am)(Code)(Java Doc) public void setAlignmentX(float alignmentX)(Code)(Java Doc) public void setAlignmentY(float alignmentY)(Code)(Java Doc) public void setAutoscrolls(boolean autoscrolls)(Code)(Java Doc) public void setBackground(Color bg)(Code)(Java Doc) public void setBorder(Border border)(Code)(Java Doc) public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc) public void setDebugGraphicsOptions(int debugOptions)(Code)(Java Doc) public static void setDefaultLocale(Locale l)(Code)(Java Doc) public void setDoubleBuffered(boolean aFlag)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFont(Font font)(Code)(Java Doc) public void setForeground(Color fg)(Code)(Java Doc) public void setInheritsPopupMenu(boolean value)(Code)(Java Doc) final public void setInputMap(int condition, InputMap map)(Code)(Java Doc) public void setInputVerifier(InputVerifier inputVerifier)(Code)(Java Doc) public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc) public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc) public void setNextFocusableComponent(Component aComponent)(Code)(Java Doc) public void setOpaque(boolean isOpaque)(Code)(Java Doc) public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc) public void setRequestFocusEnabled(boolean requestFocusEnabled)(Code)(Java Doc) public void setToolTipText(String text)(Code)(Java Doc) public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc) protected void setUI(ComponentUI newUI)(Code)(Java Doc) public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)(Code)(Java Doc) public void setVisible(boolean aFlag)(Code)(Java Doc) public void unregisterKeyboardAction(KeyStroke aKeyStroke)(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void updateUI()(Code)(Java Doc)
|
|
|