Examples of FlowBox


Examples of org.eclipse.jst.pagedesigner.css2.layout.FlowBox

  }

  /*package*/ boolean isBeforePoint(Point point) {
    boolean result = false;
    FlowBox flowBox = getLastLine();
    if (flowBox != null) {
      Rectangle boxRect = getAbsoluteBounds(flowBox);
      if (IHTMLConstants.TAG_BR.equalsIgnoreCase(Target
          .resolveNode(_part).getNodeName())) {
        return CaretPositionResolver.getYDistance(boxRect, point) == 0;
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.layout.FlowBox

  /*package*/ boolean isBeforePoint() {
    return isBeforePoint(_point);
  }

  /*package*/ boolean atLeftPart(Point point) {
    FlowBox flowBox = getBox();
    if (flowBox != null) {
      Rectangle boxRect = getAbsoluteBounds(flowBox);
      return CaretPositionResolver.toXMiddle(boxRect, point) < 0;
    }
    return true;
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.layout.FlowBox

  public Point getPoint() {
    return _point;
  }

  FlowBox getLine(int index) {
    FlowBox result = null;
    List lines = getLines(_part);
    if (lines.size() > 0 && index >= 0 && index <= lines.size() - 1) {
      result = (FlowBox) lines.get(index);
    }
    return result;
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.layout.FlowBox

    }
    return result;
  }

  FlowBox getLastLine() {
    FlowBox result = null;
    List lines = getLines(_part);
    if (lines.size() > 0) {
      result = (FlowBox) lines.get(lines.size() - 1);
    }
    return result;
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.