Package org.fonteditor.utilities.callback

Examples of org.fonteditor.utilities.callback.CallBack


    FEPointList fepl = glyph.getFEPointList(gdo);
    fepl.executeOnEachPoint(getCallBackFix());
  }

  public CallBack getCallBackFix() {
    return new CallBack() {
      public void callback(Object o) {
        FEPoint point = (FEPoint) o;
        InstructionStream is = glyph.getInstructionStream();
        is.setPoint(point, point.getX() + dx, point.getY() + dy);
      }
View Full Code Here


    FEPointList fepl = glyph.getFEPointList(gdo);
    fepl.executeOnEachPoint(getCallBackFix());
  }

  public CallBack getCallBackFix() {
    return new CallBack() {
      public void callback(Object o) {
        FEPoint point = (FEPoint) o;
        InstructionStream is = glyph.getInstructionStream();
        is.setPoint(point, point.getX(), point.getY());
      }
View Full Code Here

  public void setPoint(final FEPoint p, final int x, final int y) {
    setPoint(p.getInstructionPointer(), x, y);
  }

  public void translateAll(final int dx, final int dy) {
    fepointlist.executeOnEachPoint(new CallBack() {
      public void callback(Object o) {
        FEPoint p = (FEPoint) o;

        translatePoint(p.getInstructionPointer(), dx, dy);
      }
View Full Code Here

      }
    });
  }

  public void scaleAll(final float fx, final float fy) {
    fepointlist.executeOnEachPoint(new CallBack() {
      public void callback(Object o) {
        FEPoint p = (FEPoint) o;

        scalePoint(p.getInstructionPointer(), fx, fy);
      }
View Full Code Here

      }
    });
  }

  private void invalidatePolygons() {
    fepathlist.executeOnEachPath(new CallBack() {
      public void callback(Object o) {
        FEPath p = (FEPath) o;

        p.invalidatePolygons();
      }
View Full Code Here

TOP

Related Classes of org.fonteditor.utilities.callback.CallBack

Copyright © 2018 www.massapicom. 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.