Class SpatialFunctionPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.locationtech.jtstest.testbuilder.SpatialFunctionPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SpatialFunctionPanel extends JPanel
Version:
1.7
See Also:
  • Field Details

    • PARAM_DEFAULT

      private static final String[] PARAM_DEFAULT
    • capStyleItems

      private static String[] capStyleItems
    • capStyleValues

      private static Object[] capStyleValues
    • joinStyleItems

      private static String[] joinStyleItems
    • joinStyleValues

      private static Object[] joinStyleValues
    • panelRB

      JPanel panelRB
    • geomFuncPanel

    • gridLayout1

      GridLayout gridLayout1
    • gridLayout2

      GridLayout gridLayout2
    • borderLayout1

      BorderLayout borderLayout1
    • borderLayout2

      BorderLayout borderLayout2
    • panelParam

      JPanel panelParam
    • panelExec

      JPanel panelExec
    • panelExecParam

      JPanel panelExecParam
    • flowLayout

      FlowLayout flowLayout
    • flowLayout1

      FlowLayout flowLayout1
    • execButton

      JButton execButton
    • execToNewButton

      JButton execToNewButton
    • clearIcon

      private final ImageIcon clearIcon
    • spatialFunctionPanelListeners

      private transient Vector spatialFunctionPanelListeners
    • panelControl

      private JPanel panelControl
    • displayAAndBCheckBox

      private JCheckBox displayAAndBCheckBox
    • btnClearResult

      private JButton btnClearResult
    • lblDistance

      private JLabel lblDistance
    • txtDistance

      private JTextField txtDistance
    • lblQuadSegs

      private JLabel lblQuadSegs
    • txtQuadrantSegs

      private JTextField txtQuadrantSegs
    • lblCapStyle

      private JLabel lblCapStyle
    • cbCapStyle

      private JComboBox cbCapStyle
    • lblJoinStyle

      private JLabel lblJoinStyle
    • cbJoinStyle

      private JComboBox cbJoinStyle
    • lblMitreLimit

      private JLabel lblMitreLimit
    • txtMitreLimit

      private JTextField txtMitreLimit
    • paramComp

      private JComponent[] paramComp
    • paramLabel

      private JLabel[] paramLabel
    • currentFunc

      private GeometryFunction currentFunc
    • timer

      private Stopwatch timer
    • btnRepeat

      private JButton btnRepeat
  • Constructor Details

    • SpatialFunctionPanel

      public SpatialFunctionPanel()
  • Method Details

    • jbInit

      void jbInit() throws Exception
      Throws:
      Exception
    • initLabels

      static void initLabels(JLabel[] paramLabel)
    • enableExecuteControl

      public void enableExecuteControl(boolean isEnabled)
    • clearResultButton_actionPerformed

      void clearResultButton_actionPerformed(ActionEvent e)
    • execButton_actionPerformed

      void execButton_actionPerformed(ActionEvent e)
    • execToNewButton_actionPerformed

      void execToNewButton_actionPerformed(ActionEvent e)
    • execRepeatFunction

      void execRepeatFunction(int count)
    • displayAAndBCheckBox_actionPerformed

      void displayAAndBCheckBox_actionPerformed(ActionEvent e)
    • setCurrentFunction

      private void setCurrentFunction(GeometryFunction func)
    • execFunction

      public void execFunction(GeometryFunction func, boolean createNew)
    • functionChanged

      private void functionChanged(GeometryFunction func)
    • OLDupdateParameters

      static void OLDupdateParameters(GeometryFunction func, JComponent[] paramComp, JLabel[] paramLabel)
    • updateParameters

      static void updateParameters(GeometryFunction func, JComponent[] paramComp, JLabel[] paramLabel)
    • setToolTipText

      private static void setToolTipText(JComponent control, GeometryFunction func, int i)
    • numNonGeomParams

      private static int numNonGeomParams(GeometryFunction func)
    • attributeParamOffset

      public static int attributeParamOffset(GeometryFunction func)
    • shouldShowGeometryA

      public boolean shouldShowGeometryA()
    • shouldShowGeometryB

      public boolean shouldShowGeometryB()
    • clearFunction

      public void clearFunction()
    • getFunctionParams

      public Object[] getFunctionParams()
    • getParamValue

      private Object getParamValue(int index)
    • valOrDefault

      public static String valOrDefault(String s, String defaultVal)
    • isFunctionSelected

      public boolean isFunctionSelected()
    • getFunction

      public GeometryFunction getFunction()
    • removeSpatialFunctionPanelListener

      public void removeSpatialFunctionPanelListener(SpatialFunctionPanelListener l)
    • addSpatialFunctionPanelListener

      public void addSpatialFunctionPanelListener(SpatialFunctionPanelListener l)
    • fireFunctionExecuted

      protected void fireFunctionExecuted(SpatialFunctionPanelEvent e)