Class JTSTestBuilderFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class JTSTestBuilderFrame extends JFrame
The main frame for the JTS Test Builder.
Version:
1.7
See Also:
  • Field Details

  • Constructor Details

    • JTSTestBuilderFrame

      public JTSTestBuilderFrame()
      Construct the frame
  • Method Details

    • initFileDrop

      private void initFileDrop(Component comp)
    • initFileChoosers

      private void initFileChoosers()
    • instance

      public static JTSTestBuilderFrame instance()
    • getGeometryEditPanel

      public static GeometryEditPanel getGeometryEditPanel()
    • getModel

      public TestBuilderModel getModel()
    • setModel

      public void setModel(TestBuilderModel model)
    • reportException

      public static void reportException(Exception e)
    • setCurrentTestCase

      public void setCurrentTestCase(TestCaseEdit testCase)
    • getTestCasePanel

      public TestCasePanel getTestCasePanel()
    • getResultWKTPanel

      public ResultWKTPanel getResultWKTPanel()
    • getResultValuePanel

      public ResultValuePanel getResultValuePanel()
    • jMenuFileExit_actionPerformed

      public void jMenuFileExit_actionPerformed(ActionEvent e)
      File | Exit action performed
    • jMenuHelpAbout_actionPerformed

      public void jMenuHelpAbout_actionPerformed(ActionEvent e)
      Help | About action performed
    • showTab

      public void showTab(String name)
    • showGeomsTab

      public void showGeomsTab()
    • showResultWKTTab

      public void showResultWKTTab()
    • showResultValueTab

      public void showResultValueTab()
    • showInfoTab

      public void showInfoTab()
    • openXmlFilesAndDirectories

      public void openXmlFilesAndDirectories(File[] files) throws Exception
      Throws:
      Exception
    • processWindowEvent

      protected void processWindowEvent(WindowEvent e)
      Overridden so we can exit when window is closed
      Overrides:
      processWindowEvent in class JFrame
    • model_geometryChanged

      void model_geometryChanged(GeometryEvent e)
    • createNewCase

      void createNewCase()
    • moveToPrevCase

      void moveToPrevCase(boolean isZoom)
    • moveToNextCase

      void moveToNextCase(boolean isZoom)
    • copyCase

      void copyCase()
    • currentCase

      TestCaseEdit currentCase()
    • updateTestCases

      public void updateTestCases()
    • copyResultToTest

      public void copyResultToTest()
    • actionExchangeGeoms

      public void actionExchangeGeoms()
    • btnDeleteCase_actionPerformed

      void btnDeleteCase_actionPerformed(ActionEvent e)
    • actionInspectGeometry

      public void actionInspectGeometry()
    • actionInspectGeometryDialog

      public void actionInspectGeometryDialog()
    • getRunXml

      public String getRunXml()
    • drawRectangleButton_actionPerformed

      void drawRectangleButton_actionPerformed(ActionEvent e)
    • drawPolygonButton_actionPerformed

      void drawPolygonButton_actionPerformed(ActionEvent e)
    • drawLineStringButton_actionPerformed

      void drawLineStringButton_actionPerformed(ActionEvent e)
    • drawPointButton_actionPerformed

      void drawPointButton_actionPerformed(ActionEvent e)
    • infoButton_actionPerformed

      void infoButton_actionPerformed()
    • actionExtractComponentButton

      void actionExtractComponentButton()
    • actionDeleteVertexButton

      void actionDeleteVertexButton()
    • zoomInButton_actionPerformed

      void zoomInButton_actionPerformed(ActionEvent e)
    • oneToOneButton_actionPerformed

      void oneToOneButton_actionPerformed(ActionEvent e)
    • zoomToFullExtentButton_actionPerformed

      void zoomToFullExtentButton_actionPerformed(ActionEvent e)
    • zoomToResult_actionPerformed

      void zoomToResult_actionPerformed(ActionEvent e)
    • zoomToInputButton_actionPerformed

      void zoomToInputButton_actionPerformed(ActionEvent e)
    • zoomToInputA_actionPerformed

      void zoomToInputA_actionPerformed(ActionEvent e)
    • zoomToInputB_actionPerformed

      void zoomToInputB_actionPerformed(ActionEvent e)
    • panButton_actionPerformed

      void panButton_actionPerformed(ActionEvent e)
    • deleteAllTestCasesMenuItem_actionPerformed

      void deleteAllTestCasesMenuItem_actionPerformed(ActionEvent e)
    • setShowingGrid

      public void setShowingGrid(boolean showGrid)
    • showVertexIndicesMenuItem_actionPerformed

      void showVertexIndicesMenuItem_actionPerformed(ActionEvent e)
    • precisionModelMenuItem_actionPerformed

      void precisionModelMenuItem_actionPerformed(ActionEvent e)
    • revealTopo_actionPerformed

      void revealTopo_actionPerformed()
    • jbInit

      private void jbInit() throws Exception
      Component initialization
      Throws:
      Exception
    • getToolbar

      public JTSTestBuilderToolBar getToolbar()
    • updateStatsPanelIfVisible

      private void updateStatsPanelIfVisible()
    • updateGeometry

      private void updateGeometry()
    • updateWktPanel

      private void updateWktPanel()
    • updatePrecisionModelDescription

      private void updatePrecisionModelDescription()
    • updateTestCaseView

      public void updateTestCaseView()
    • displayInfo

      public void displayInfo(Coordinate modelPt)
    • displayInfo

      public void displayInfo(String s)
    • displayInfo

      public void displayInfo(String s, boolean showTab)
    • reportProblemsParsingXmlTestFile

      private void reportProblemsParsingXmlTestFile(List parsingProblems)
    • btnEditVertex_actionPerformed

      void btnEditVertex_actionPerformed(ActionEvent e)
    • pickOffset

      private Coordinate pickOffset(Geometry a, Geometry b)