Package com.vividsolutions.jtstest.testbuilder

Examples of com.vividsolutions.jtstest.testbuilder.GeometryEditPanel$PopupClickListener


    return g.getFactory();
  }
 
  public static void showIndicator(Geometry geom)
  {
    GeometryEditPanel panel = JTSTestBuilderFrame
    .instance().getTestCasePanel()
    .getGeometryEditPanel();
    Graphics2D gr = (Graphics2D) panel.getGraphics();
    GeometryPainter.paint(geom, panel.getViewport(), gr,
        AppConstants.INDICATOR_LINE_CLR,
        AppConstants.INDICATOR_FILL_CLR);
  }
View Full Code Here


    int dy = Math.abs(zoomBoxEnd.y - zoomBoxStart.y);
    // ensure deltas are valid
    if (dx <= 0) dx = 1;
    if (dy <= 0) dy = 1;
   
    GeometryEditPanel panel = panel();
    double widthFactor = panel.getSize().width / dx;
    double heightFactor = panel.getSize().height / dy;
    double zoomFactor = Math.min(widthFactor, heightFactor);

//    double zoomFactor = 2;
    panel().zoom(centre, zoomFactor);
  }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jtstest.testbuilder.GeometryEditPanel$PopupClickListener

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.