Package net.sourceforge.jpowergraph.painters

Examples of net.sourceforge.jpowergraph.painters.NodePainter


     *            the graphics
     * @param node
     *            the node
     */
    protected void paintNode(JPowerGraphGraphics g, Node node) {
        NodePainter nodePainter = getPainterForNode(node);
        nodePainter.paintNode(this, g, node, nodeSize, subGraphHighlighter);
    }
View Full Code Here


        synchronized (m_graph) {
            List nodes = m_graph.getVisibleNodes();
            ListIterator iterator = nodes.listIterator(nodes.size());
            while (iterator.hasPrevious()) {
                Node node = (Node) iterator.previous();
                NodePainter nodePainter = getPainterForNode(node);
                if (nodePainter.isInNode(this, node, point, nodeSize, 1))
                    return node;
            }
            return null;
        }
    }
View Full Code Here

     *            the node for which the bounds must be returned
     * @param nodeScreenRectangle
     *            the rectangle receiving the node's coordinates
     */
    public void getNodeScreenBounds(Node node, JPowerGraphRectangle nodeScreenRectangle) {
        NodePainter nodePainter = getPainterForNode(node);
        nodePainter.getNodeScreenBounds(this, node, nodeSize, 1.0, nodeScreenRectangle);
    }
View Full Code Here

   
    public void refreshLegend(Graph graph) {
        m_legend.clear();
        for (Iterator i = graph.getAllNodes().iterator(); i.hasNext();) {
            Node node = (Node) i.next();
            NodePainter nodePainter = getPainterForNode(node);
            m_legend.add(new NodeLegendItem(node.getClass(), nodePainter, node.getNodeType()));
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.jpowergraph.painters.NodePainter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.