Package prefuse

Examples of prefuse.Visualization


    private static final String labels = "labels";

    private SearchQueryBinding searchQ;
   
    public TreeMap(Tree t, String label) {
        super(new Visualization());
       
        // add the tree to the visualization
        VisualTree vt = m_vis.addTree(tree, t);
        m_vis.setVisible(treeEdges, null, false);
       
View Full Code Here


       
        public void itemPressed(VisualItem item, MouseEvent e) {
            if (!SwingUtilities.isLeftMouseButton(e)) return;
           
            // set the focus to the current node
            Visualization vis = item.getVisualization();
            vis.getFocusGroup(Visualization.FOCUS_ITEMS).setTuple(item);
           
            item.setFixed(true);
            dragged = false;
            Display d = (Display)e.getComponent();
            down = d.getAbsoluteCoordinate(e.getPoint(), down);
           
            vis.run("forces");
        }
View Full Code Here

                activeItem = null;
                item.setFixed(wasFixed);
                dragged = false;
            }
            // clear the focus
            Visualization vis = item.getVisualization();
            vis.getFocusGroup(Visualization.FOCUS_ITEMS).clear();

            vis.cancel("forces");
        }
View Full Code Here

    public static final String EDGES = "graph.edges";
    public static final String AGGR = "aggregates";
   
    public AggregateDemo() {
        // initialize display and data
        super(new Visualization());
        initDataGroups();
       
        // set up the renderers
        // draw the nodes as basic shapes
        Renderer nodeR = new ShapeRenderer(20);
View Full Code Here

    public GraphView(final JFrame frame,
                     final Configuration config,
                     final ColorManager colorManager,
                     final ProvisionMonitor monitor,
                     final int orientation) {
        super(new Visualization());
        this.frame = frame;
        this.config = config;
        this.colorManager = colorManager;
        this.monitor = monitor;
        this.orientation = orientation;
View Full Code Here

        //Visualization vis = item.getVisualization();
        //vis.getFocusGroup(Visualization.FOCUS_ITEMS).clear();
    }

    public void itemClicked(final VisualItem item, MouseEvent e) {
        final Visualization vis = item.getVisualization();
        if (SwingUtilities.isRightMouseButton(e)) {
            if (e.getClickCount() == 1) {
                Object uo = item.getSourceTuple().get(Constants.USER_OBJECT);
                if (!(uo instanceof GraphNode))
                    return;
View Full Code Here

TOP

Related Classes of prefuse.Visualization

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.