Package diva.gui

Examples of diva.gui.BasicFrame


        // Create a manipulator to give resize handles on figures
        BoundsManipulator figureManipulator = new BoundsManipulator();
        controller.setSelectionManipulator(figureManipulator);

        // Create the window
        BasicFrame frame = new BasicFrame("Icons 'R' us", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here


     */
    public ManipulatorTutorial() {
        canvas = new JCanvas();
        graphicsPane = (GraphicsPane) canvas.getCanvasPane();

        BasicFrame frame = new BasicFrame("Manipulator canvas tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here

    public ConnectorTutorial() {
        canvas = new JCanvas();

        graphicsPane = (GraphicsPane) canvas.getCanvasPane();

        BasicFrame frame = new BasicFrame("Connector tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);

        controller = new BasicController(graphicsPane);
    }
View Full Code Here

     */
    public DragTutorial() {
        canvas = new JCanvas();
        graphicsPane = (GraphicsPane) canvas.getCanvasPane();

        BasicFrame frame = new BasicFrame("Drag tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here

        graphicsPane = (GraphicsPane) canvas.getCanvasPane();
        layer = graphicsPane.getForegroundLayer();
        controller = new BasicController(graphicsPane);
        defaultInteractor = controller.getSelectionInteractor();

        BasicFrame frame = new BasicFrame("Composite figure tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here

     */
    public TransformedFigureTutorial() {
        canvas = new JCanvas();
        graphicsPane = (GraphicsPane) canvas.getCanvasPane();

        BasicFrame frame = new BasicFrame("Figure tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here

     */
    public ArcTutorial() {
        canvas = new JCanvas();
        graphicsPane = (GraphicsPane) canvas.getCanvasPane();

        BasicFrame frame = new BasicFrame("Connector tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);

        controller = new BasicController(graphicsPane);
    }
View Full Code Here

        // Create a controller to do the work.
        controller = new BasicController(graphicsPane);
        defaultInteractor = controller.getSelectionInteractor();

        // Create the window
        BasicFrame frame = new BasicFrame("Simple canvas tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here

     */
    public SimpleTutorial() {
        canvas = new JCanvas();
        graphicsPane = (GraphicsPane) canvas.getCanvasPane();

        BasicFrame frame = new BasicFrame("Simple canvas tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here

     * Construct a new instance of graph demo, which does the work of
     * setting up the graphs and displaying itself.
     * @param argv Command line arguments, currently ignored.
     */
    public static void main(String[] argv) {
        AppContext context = new BasicFrame("Basic Graph Demo");
        new BasicGraphDemo(context);
    }
View Full Code Here

TOP

Related Classes of diva.gui.BasicFrame

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.