Examples of CSSTableLayout2


Examples of org.eclipse.jst.pagedesigner.css2.layout.table.CSSTableLayout2

                    .getFigure();
            if (figure instanceof CSSFigure) {
                CSSFigure cssFigure = (CSSFigure) figure;
                LayoutManager layoutManager = cssFigure.getLayoutManager();
                if (layoutManager instanceof CSSTableLayout2) {
                    CSSTableLayout2 tableLayout = (CSSTableLayout2) layoutManager;
                    bounds.y = tableLayout.getHSpacing();
                    bounds.height = figure.getClientArea().height
                            - tableLayout.getHSpacing() * 2;
                }
            }
        }
        bounds = new PrecisionRectangle(bounds.getResized(-1, -1));
        editPart.getFigure().translateToAbsolute(bounds);
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.layout.table.CSSTableLayout2

    } else if ("inline".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSInlineFlowLayout(figure);
    } else if ("table".equalsIgnoreCase(display) || "inline-table".equalsIgnoreCase(display)) //$NON-NLS-1$ //$NON-NLS-2$ $NON-NLS-2$
    {
      return new CSSTableLayout2(figure);
    } else if ("table-row".equalsIgnoreCase(display)) //$NON-NLS-1$
    {
      return new CSSTRLayout(figure);
    } else if ("table-row-group".equalsIgnoreCase(display) //$NON-NLS-1$
        || "table-header-group".equalsIgnoreCase(display) //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.layout.table.CSSTableLayout2

   * @return the operation context for part
   */
  public static TableOperationContext getTableOperationContext(EditPart part) {
    EditPart originalPart = part;
    ElementEditPart tablePart = null;
    CSSTableLayout2 tableLayout = null;

    while (part.getParent() instanceof ElementEditPart) {
      part = part.getParent();
      IFigure figure = ((GraphicalEditPart) part).getFigure();

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.