Examples of GssProperties


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

    // layer.fillRect(bounds.x + dir, maxLabelHeight, tickProperties.lineThickness, bounds.height-maxLabelHeight);
    layer.fillRect(dir, maxLabelHeight, tickProperties.lineThickness, bounds.height);
    }

  private GssProperties getTickProps(GssProperties defprop) {
    GssProperties tprop = defprop;
    if (false && !plot.isMultiaxis()) {
      int dIdx = plot.getFocus() != null ? plot.getFocus().getDatasetIndex()
          : -1;

      if (dIdx != -1) {
        GssProperties cprop = plot.getDatasetRenderer(dIdx).getCurveProperties()
            ;
        if (cprop != null) {
          tprop = cprop;
        }
      }
View Full Code Here

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

  }

  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);
   
    gss=new GssStylesheetGssContext("series.mid {visibility: hidden; color: red}");
    p = gss.getProperties(gssElem, "");
View Full Code Here

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

  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.gss.GssProperties

  }
 
  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, "");
    assertEquals(false, p.visible);
View Full Code Here

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

        .startsWith("http://timepedia.org/")) {
      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.gss.GssProperties

  }

  @Override
  public GssProperties getProperties(GssElement gssElem, String pseudoElt) {
    boolean notPseudo = pseudoElt == null || "".equals(pseudoElt);
    GssProperties props = notPseudo
        ? propertyMap.get(gssElem) : null;
    if (props == null) {
      props = super.getProperties(gssElem, pseudoElt);
      if(notPseudo) {
        propertyMap.put(gssElem, props);
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());
View Full Code Here

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

    Widget content = new HTML(html);
    content.setStyleName("chrono-infoWindow-content");
    pp.setWidget(content);
    pp.setPopupPosition(getElement().getAbsoluteLeft() + (int)x, getElement().getAbsoluteTop() + (int)y);

    GssProperties markerProperties = gssContext.getPropertiesBySelector("marker");
    if (markerProperties != null) {
      pp.getElement().getStyle().setBackgroundColor(markerProperties.bgColor.toString());
      pp.getElement().getStyle().setColor(markerProperties.color.toString());
      pp.getElement().getStyle().setProperty("fontFamily", markerProperties.fontFamily.toString());
      pp.getElement().getStyle().setProperty("fontSize", markerProperties.fontSize.toString());
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.