Examples of GssElementImpl


Examples of org.timepedia.chronoscope.client.render.GssElementImpl

      }
    });
    cp.setReadyListener(new ViewReadyCallback() {
      public void onViewReady(View view) {
        GssProperties props = view
            .getGssProperties(new GssElementImpl("axes", null), "");
        assertEquals(color.toString(), "#ff0000");
        finishTest();
      }
    });
    delayTestFinish(15000);
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

    if (markerProperties == null) {
      View view = plot.getChart().getView();
      markerProperties = view.getGssProperties(this, "");
      markerLabelProperties = view
          .getGssProperties(new GssElementImpl("label", this), "");
    }

    if (!markerProperties.visible) {
      return;
    }
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

  public void draw(Layer backingCanvas, String layer) {
    if (markerProperties == null) {
      View view = plot.getChart().getView();
      markerProperties = view.getGssProperties(this, "");
      markerLabelProperties = view
          .getGssProperties(new GssElementImpl("label", this), "");
      labelHeight = backingCanvas.stringHeight(label,
          markerLabelProperties.fontFamily, markerLabelProperties.fontWeight,
          markerLabelProperties.fontSize);
    }
    if (!markerProperties.visible) {
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

      labelWidth = layer.stringWidth(label, markerProps.fontFamily, "normal",
          markerProps.fontSize);
      labelHeight = layer.stringHeight(label, markerProps.fontFamily, "normal",
          markerProps.fontSize) + 2;
      guideLineProps = view
          .getGssProperties(new GssElementImpl("guideline", this), "");

      setGuideLine(guideLineProps.visible);
      setGuideLineDateFormat(guideLineProps.dateFormat);
      isScreenPropsSet = true;
    }
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

    // return "org.timepedia.chronoscope.ChronoscopeAPI";
    return null;
  }

  public void atestChildrenWithId() {
    GssElement gssElem = new GssElementImpl("series", null, "s1 mid");
    GssStylesheetGssContext gss=new GssStylesheetGssContext();
    GssProperties p = gss.getProperties(gssElem, "");
    assertEquals("#000000", p.color.toString());
    assertEquals(true, p.visible);
   
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

    assertEquals(false, p.visible);
  }

  public void atestChildrenSeriesWithId() {
    GssStylesheetGssContext gss=new GssStylesheetGssContext("series.s1 fill {color: black}; series.#mid fill {visibility: hidden; color: red}; series.s1 fill {color: green}; ");
    GssElement gssElem = new GssElementImpl("series", null, "s1 #mid");
    GssElement gssFill = new GssElementImpl("fill", gssElem);
    GssProperties p = gss.getProperties(gssFill, "");

    assertEquals("#ff0000", p.color.toString());
    assertEquals(false, p.visible);
  }
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

    assertEquals(false, p.visible);
  }
 
  public void testOverviewVisibility() {
    GssStylesheetGssContext gss=new GssStylesheetGssContext("overview { visiblity: hidden; }");
    GssElement gssElm = new GssElementImpl("overview", null);
    GssProperties p = gss.getProperties(gssElm, "");
    assertEquals(true, p.visible);

    gss=new GssStylesheetGssContext("overview { visibility: hidden; }");
    p = gss.getProperties(gssElm, "");
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

      bgColor = GssUtil.createGradient(view.getCanvas().getRootLayer(), size, size,
          bgImage);
    }
    if (!"shadow".equals(elem.getType())) {
      GssProperties shadowProp = gssContext
          .getProperties(new GssElementImpl("shadow", elem), pseudoElt);
      shadowBlur = shadowProp.size;
      shadowColor = shadowProp.color;
      shadowOffsetX = shadowProp.left;
      shadowOffsetY = shadowProp.top;
    }
View Full Code Here

Examples of org.timepedia.chronoscope.client.render.GssElementImpl

    return ret;
  }

  public static void main(String[] args) {
    GssStylesheetGssContext gss=new GssStylesheetGssContext("point.focus {color: red}");
    gss.getProperties(new GssElementImpl("point", null), "");
  }
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.