Examples of Axes


Examples of org.apache.isis.viewer.dnd.view.Axes

        } else {
            spec = specification;
        }
        // TODO this should be passed in so that factory created views can be related to the views that ask
        // for them
        final Axes axes = new Axes();
        View createView = spec.createView(content, axes, -1);

        /*
         * ObjectSpecification contentSpecification = content.getSpecification(); if (contentSpecification != null) {
         * Options viewOptions = Properties.getViewConfigurationOptions(spec); createView.loadOptions(viewOptions); }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Axes

        return new DragViewOutline(view);
    }

    @Override
    public DragEvent createDragContentOutline(final View view, final Location location) {
        final View dragOverlay = dragContentSpecification.createView(view.getContent(), new Axes(), -1);
        return new ContentDragImpl(view, location, dragOverlay);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Axes

            + " view";
    }

    @Override
    public void execute(final Workspace workspace, final View view, final Location at) {
        final View replacement = specification.createView(view.getContent(), new Axes(), -1);
        LOG.debug("replacement view " + replacement);
        replace(view, replacement);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Axes

        this.parent = target;
    }

    @Override
    public Axes getViewAxes() {
        return new Axes();
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Axes

    public MasterDetailPanel(final Content content, final ViewSpecification specification,
        final ViewSpecification leftHandSideSpecification) {
        super(content, specification);
        this.leftHandSideSpecification = leftHandSideSpecification;
        axes = new Axes();
        axes.add(new SelectableViewAxis(this));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Axes

        if (fieldContent.isCollection()) {
            internalSpecification = new SimpleListSpecification();
        } else {
            internalSpecification = new InternalFormSpecification();
        }
        addView(internalSpecification.createView(fieldContent, new Axes(), 0));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Axes

        return viewRoot;
    }

    @Override
    public Axes getViewAxes() {
        return new Axes();
    }
View Full Code Here

Examples of org.dussan.vaadin.dcharts.options.Axes

    Component chart = null;
    if (CHART_TYPE_BAR_CHART.equals(type)) {
     
      DataSeries dataSeries = new DataSeries().add((Object[]) values);
      SeriesDefaults seriesDefaults = new SeriesDefaults().setRenderer(SeriesRenderers.BAR);
      Axes axes = new Axes().addAxis(new XYaxis().setRenderer(AxisRenderers.CATEGORY).setTicks(new Ticks().add((Object[]) names)));
      Highlighter highlighter = new Highlighter().setShow(false);
     
      Options options = new Options().setSeriesDefaults(seriesDefaults).setAxes(axes).setHighlighter(highlighter);
      options.setAnimate(true);
      options.setAnimateReplot(true);
     
      chart = new DCharts().setDataSeries(dataSeries).setOptions(options);
     
    } else if(CHART_TYPE_PIE_CHART.equals(type)) {
     
      DataSeries dataSeries = new DataSeries().newSeries();
      for (int i=0; i<names.length; i++) {
        dataSeries.add(names[i], values[i]);
      }
      SeriesDefaults seriesDefaults = new SeriesDefaults().setRenderer(SeriesRenderers.PIE);
     
      Options options = new Options().setSeriesDefaults(seriesDefaults);
      options.setAnimate(true);
      options.setAnimateReplot(true);
     
      Legend legend = new Legend().setShow(true).setPlacement(LegendPlacements.INSIDE);
      options.setLegend(legend);
     
      Highlighter highlighter = new Highlighter().setShow(true);
      options.setHighlighter(highlighter);
     
      chart = new DCharts().setDataSeries(dataSeries).setOptions(options);
     
    } else if (CHART_TYPE_LINE_CHART.equals(type)) {

      AxesDefaults axesDefaults = new AxesDefaults().setLabelRenderer(LabelRenderers.CANVAS);
      Axes axes = new Axes()
        .addAxis(new XYaxis().setLabel(xAxis != null ? xAxis : "").setMin(names[0]).setMax(names[values.length - 1]).setDrawMajorTickMarks(true))
        .addAxis(new XYaxis(XYaxes.Y).setLabel(yAxis != null ? yAxis : "").setDrawMajorTickMarks(true));
      Options options = new Options().setAxesDefaults(axesDefaults).setAxes(axes);
      DataSeries dataSeries = new DataSeries().newSeries();
      for (int i=0; i<names.length; i++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.