Package jsynoptic.ui

Examples of jsynoptic.ui.ShapeCreator


   
    protected List shapeCreators;

    public CircuitPlugin(){
        shapeCreators = new ArrayList();
        shapeCreators.add(new ShapeCreator(this, SWITCH_BOX_2_POS, null, CIRCUIT, CIRCUIT_ICON));
        shapeCreators.add(new ShapeCreator(this, SWITCH_BOX_3_POS, null, CIRCUIT, CIRCUIT_ICON));
        shapeCreators.add(new ShapeCreator(this, EMITTER, null, CIRCUIT, CIRCUIT_ICON));
        shapeCreators.add(new ShapeCreator(this, RECEIVER, null, CIRCUIT, CIRCUIT_ICON));
        shapeCreators.add(new ShapeCreator(this, GATED_SVG_SHAPE, null, CIRCUIT, CIRCUIT_ICON));
       
        ShapeCreator connectorCreator = new ShapeCreator(this, CIRCUIT_CONNECTOR, CIRCUIT_CONNECTOR_ICON, CIRCUIT, CIRCUIT_ICON);
        connectorCreator.enableGateTrackingAtCreation = true;
       
        shapeCreators.add(connectorCreator);
    }
View Full Code Here


  protected List shapeCreators;
  public final static String SVG_SHAPE=resources.getString("SvgShape");
   
  public SvgPlugin(){
      shapeCreators = new ArrayList();
        shapeCreators.add(new ShapeCreator(this, SVG_SHAPE));
  }
View Full Code Here

    /**
     *
     */
    public AsyncPlugin(){
        shapeCreators = new ArrayList();
        shapeCreators.add(new ShapeCreator(this, TIME_PLOT));
    }
View Full Code Here

        // By default ensure old plug-ins compatibility
        String[] shapes = getShapes();
        if (shapes != null){
            res = new ArrayList();
            for(int i=0;i<shapes.length; i++){
                res.add(new ShapeCreator(this, shapes[i]));
            }
        }
        return res;
    }
View Full Code Here

    public final static Icon JFREE_CHART_ICON =  resources.getIcon("JFreeChartIcon");

    public JFreeChartPlugin(){
        shapeCreators = new ArrayList();
       
        shapeCreators.add(new ShapeCreator(this, PLOT_CYCLIC, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, PLOT_STANDARD, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, PLOT_SCATTER, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, PLOT_PARAMETRIC, null, JFREE_CHART, JFREE_CHART_ICON));
       
        shapeCreators.add(new ShapeCreator(this, METER, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, AREA_CHART, null, JFREE_CHART, JFREE_CHART_ICON));
       
        shapeCreators.add(new ShapeCreator(this, BAR_CHART, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, BAR_CHAR_3D, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, BAR_CHART_STACKED, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, BAR_CHART_STACKED_3D, null, JFREE_CHART, JFREE_CHART_ICON));
       
        shapeCreators.add(new ShapeCreator(this, PIE_CHART, null, JFREE_CHART, JFREE_CHART_ICON));
        shapeCreators.add(new ShapeCreator(this, PIE_CHART_3D, null, JFREE_CHART, JFREE_CHART_ICON));

    }
View Full Code Here

        }
       
        // builtin shape creators
        shapeCreators = new ArrayList();
       
        shapeCreators.add(new ShapeCreator(this, PLOT, resources.getIcon("PlotIcon")));
        shapeCreators.add(new ShapeCreator(this, TIME_PLOT));
        shapeCreators.add(new ShapeCreator(this, TEXT, resources.getIcon("TextIcon")));
        shapeCreators.add(new ShapeCreator(this, TEXT_ARRAY));
        shapeCreators.add(new ShapeCreator(this, HISTORY));
        shapeCreators.add(new ShapeCreator(this, POLYGON));
        shapeCreators.add(new ShapeCreator(this, ELLIPSE, resources.getIcon("EllipseIcon")));
        shapeCreators.add(new ShapeCreator(this, RECTANGLE, resources.getIcon("RectangleIcon")));
        shapeCreators.add(new ShapeCreator(this, LINES));
        shapeCreators.add(new ShapeCreator(this, IMAGE));
        shapeCreators.add(new ShapeCreator(this, AUTOMATON));
        shapeCreators.add(new ShapeCreator(this, CONNECTION));
        shapeCreators.add(new ShapeCreator(this, BAR));

        // Providers
        DataSourcePool.global.addProvider(new LinearSinusDataSourceProvider());
        DataSourcePool.global.addProvider(new DataSourceCollectionAnimatorProvider());
        DataSourcePool.global.addProvider(new DataSourceAnimatorProvider());
View Full Code Here

TOP

Related Classes of jsynoptic.ui.ShapeCreator

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.