Examples of CSSBorder


Examples of org.eclipse.jst.pagedesigner.css2.border.CSSBorder

    g.pushState();
    g.setBackgroundColor(ColorConstants.button);
    g.fillRectangle(innerRect2);
    g.popState();

    CSSBorder cssBorder = new CSSBorder(style);
    String[] edges = new String[] { ICSSStyle.LEFT, ICSSStyle.RIGHT,
        ICSSStyle.TOP, ICSSStyle.BOTTOM };
    for (int i = 0; i < edges.length; i++) {
      cssBorder.paintEdge(g, rect1, innerRect1, edges[i],
          getBorderStyle(edges[i]));
    }
    for (int i = 0; i < edges.length; i++) {
      String borderStyle = getBorderStyle(edges[i]);
      if (ICSSPropertyID.VAL_INSET.equals(borderStyle)) {
        borderStyle = ICSSPropertyID.VAL_OUTSET;
      }
      cssBorder.paintEdge(g, rect2, innerRect2, edges[i], borderStyle);
    }

    _sub2.paintFigure(g, innerRect2.getCopy().crop(paddingInset));
    // _sub1.paintFigure(g, innerRect1.crop(paddingInset));
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.border.CSSBorder

      return;
    }

    ICSSStyle style = this.getCSSStyle();
    if (style != null) {
      CSSBorder border1 = new CSSBorder(this.getCSSStyle());
      border1.paint(this, graphics, NO_INSETS);

      // draw a border for those special elements like <h:form>, etc.
      ITagEditInfo editInfo = (ITagEditInfo) style
          .getAdapter(ITagEditInfo.class);
      if (editInfo != null && editInfo.needBorderDecorator()) {
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.