Package net.sourceforge.jpowergraph.painters

Examples of net.sourceforge.jpowergraph.painters.EdgePainter


     *            the graphics
     * @param edge
     *            the edge
     */
    protected void paintEdge(JPowerGraphGraphics g, Edge edge) {
        EdgePainter edgePainter = getPainterForEdge(edge);
        edgePainter.paintEdge(this, g, edge, subGraphHighlighter);
    }
View Full Code Here


        synchronized (m_graph) {
            List edges = m_graph.getVisibleEdges();
            ListIterator iterator = edges.listIterator(edges.size());
            while (iterator.hasPrevious()) {
                Edge edge = (Edge) iterator.previous();
                EdgePainter edgePainter = getPainterForEdge(edge);
                double distance = edgePainter.screenDistanceFromEdge(this, edge, point);
                if (distance < minDistance) {
                    minDistance = distance;
                    nearestEdge = edge;
                }
            }
View Full Code Here

     *            the edge for which the bounds must be returned
     * @param edgeScreenRectangle
     *            the rectangle receiving the edge's coordinates
     */
    public void getEdgeScreenBounds(Edge edge, JPowerGraphRectangle edgeScreenRectangle) {
        EdgePainter edgePainter = getPainterForEdge(edge);
        edgePainter.getEdgeScreenBounds(this, edge, edgeScreenRectangle);
    }
View Full Code Here

TOP

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

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.