Examples of GssProperties


Examples of org.timepedia.chronoscope.client.gss.GssProperties

    ArgChecker.isNotNull(dataset, "dataset");

    DrawableDataset<T> drawableDataset = new DrawableDataset<T>();
    drawableDataset.dataset = dataset;
    GssElement gssElem = new GssElementImpl("series", null, "s" + datasetIndex + " #" + dataset.getIdentifier());
    GssProperties seriesProp = view.getGssProperties(gssElem, "");
    DatasetRenderer<T> renderer = null;

    GssElement gssIdElem = new GssElementImpl("series", null,
        dataset.getIdentifier());
    GssProperties propsId = view.getGssProperties(gssIdElem, "");

    if (propsId.gssSupplied && !"auto".equals(propsId.display)) {
      renderer = this.datasetRendererMap.newDatasetRenderer(propsId.display);
    } else if (seriesProp.gssSupplied && !"auto".equals(seriesProp.display)) {
      renderer = this.datasetRendererMap.newDatasetRenderer(seriesProp.display);
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

      if (!dds.getRenderer().isCustomInstalled()) {

        GssElement gssIdElem = new GssElementImpl("series", null,
            dds.dataset.getIdentifier());
        GssElement gssElem = new GssElementImpl("series", null, "s" + index + " #" + dds.dataset.getIdentifier());
        GssProperties props = view.getGssProperties(gssElem, "");
        GssProperties propsId = view.getGssProperties(gssIdElem, "");

        String renderType = dds.dataset.getPreferredRenderer();
        if (renderType == null || renderType.equals("")) {
          renderType = "line";
        }
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

    final Color color = new Color("#ff0000");
   
    cp.setGssContext(new IEGssContext() {
      public GssProperties getProperties(GssElement gssElem, String pseudoElt) {
        if ("axes".equals(gssElem.getType())) {
          return new GssProperties() {
            {
              this.bgColor = color;
            }
          };
        }
        return super.getProperties(gssElem, pseudoElt);
      }
    });
    cp.setReadyListener(new ViewReadyCallback() {
      public void onViewReady(View view) {
        GssProperties props = view
            .getGssProperties(new GssElementImpl("axes", null), "");
        assertEquals(color.toString(), "#ff0000");
        finishTest();
      }
    });
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

  }

  @Override
  @Export
  public void setLegendLabelsVisible(boolean visible) {
    GssProperties gss = getComputedStyle("axislegend labels");
    if (gss != null) {
      gss.setVisible(visible);
      setLegendEnabled(true);
    }
  }
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

   /* if (bottomPanel.isOverviewVisible() && bottomPanel.getHeight() > MIN_PLOT_HEIGHT/3.0) {
      bottomPanel.setOverviewVisible(false);
    }*/


    GssProperties legendProps = view.getGssProperties(new GssElementImpl("axislegend", null), "");
    if (legendProps.gssSupplied && !legendOverridden) {
      topPanel.setEnabled(legendProps.visible);
    }

    // FIXME: the top panel's initialization currently depends on the initialization
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

   * screen coordinates, and return the the Bounds of the icon.
   */
  public void drawLegendIcon(Layer layer, double x, double y, double w, double h, int dim) {
      layer.save();

      GssProperties alineProp;
      if (plot.getFocus() != null
          && plot.getFocus().getDatasetIndex() != this.datasetIndex) {
        alineProp = gssDisabledLineProps;
      } else {
        alineProp = gssLineProps;
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

*/
public class GVizGssContext extends MockGssContext {

  public GssProperties getProperties(GssElement gssElem, String pseudoElt) {
 
    GssProperties gssProps = super.getProperties(gssElem, pseudoElt);
   
    if ("fill".equals(gssElem.getType())) {
      gssProps.setColor(Color.TRANSPARENT);
    } else if ("point".equals(gssElem.getType())) {
      gssProps.size = 5;
      gssProps.lineThickness = isFocus(pseudoElt) ? 4 : 2;
    } else if ("plot".equals(gssElem.getType())) {
      gssProps.fontSize = "12pt";
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

    private static class FilledDefaultGssContext extends DefaultGssContext {
        public GssProperties getProperties(GssElement gssElem, String pseudoElt) {

            if ("fill".equals(gssElem.getType())) {
                GssProperties props = super.getProperties(gssElem, pseudoElt);
                if (isDisabled(pseudoElt)) {
                    props.bgColor = Color.TRANSPARENT;
                } else {
                    props.bgColor = datasetColorMap.get(gssElem.getParentGssElement());
                    props.transparency = 0.3;
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

  public void drawPoint(int datasetIndex, int domainIndex, Layer layer, T point, RenderState renderState) {
    final boolean isFocused = renderState.isFocused();
    final double dataX = point.getDomain();
    final double dataY = point.getRange0();

    GssProperties gssProps;
    if (isFocused) {
      gssProps = this.gssFocusPointProps;
    } else if (renderState.isDisabled()) {
      gssProps = this.gssDisabledPointProps;
    } else {
View Full Code Here

Examples of org.timepedia.chronoscope.client.gss.GssProperties

    layer.restore();
  }

  private void drawLine(Layer layer, Bounds bounds) {
    log(layer.getLayerId() + " drawLine "+ bounds);
    GssProperties tprop = getTickProps(tickProperties);
    log("drawLine setFill "+tprop.color);
    layer.setFillColor(tprop.color);
    boolean isLeft = getParentPosition() == Position.LEFT;
    double dir = (isLeft ? bounds.width : 0);
    if (TickPosition.INSIDE == TickPosition.is(gssProperties.tickPosition)) {
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.