public class SpatialFunctionPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
(package private) java.awt.BorderLayout |
borderLayout1 |
(package private) java.awt.BorderLayout |
borderLayout2 |
private javax.swing.JButton |
btnClearResult |
private javax.swing.JButton |
btnRepeat |
private static java.lang.String[] |
capStyleItems |
private static java.lang.Object[] |
capStyleValues |
private javax.swing.JComboBox |
cbCapStyle |
private javax.swing.JComboBox |
cbJoinStyle |
private javax.swing.ImageIcon |
clearIcon |
private GeometryFunction |
currentFunc |
private javax.swing.JCheckBox |
displayAAndBCheckBox |
(package private) javax.swing.JButton |
execButton |
(package private) javax.swing.JButton |
execToNewButton |
(package private) java.awt.FlowLayout |
flowLayout |
(package private) java.awt.FlowLayout |
flowLayout1 |
(package private) GeometryFunctionTreePanel |
geomFuncPanel |
(package private) java.awt.GridLayout |
gridLayout1 |
(package private) java.awt.GridLayout |
gridLayout2 |
private static java.lang.String[] |
joinStyleItems |
private static java.lang.Object[] |
joinStyleValues |
private javax.swing.JLabel |
lblCapStyle |
private javax.swing.JLabel |
lblDistance |
private javax.swing.JLabel |
lblJoinStyle |
private javax.swing.JLabel |
lblMitreLimit |
private javax.swing.JLabel |
lblQuadSegs |
private javax.swing.JPanel |
panelControl |
(package private) javax.swing.JPanel |
panelExec |
(package private) javax.swing.JPanel |
panelExecParam |
(package private) javax.swing.JPanel |
panelParam |
(package private) javax.swing.JPanel |
panelRB |
private static java.lang.String[] |
PARAM_DEFAULT |
private javax.swing.JComponent[] |
paramComp |
private javax.swing.JLabel[] |
paramLabel |
private java.util.Vector |
spatialFunctionPanelListeners |
private Stopwatch |
timer |
private javax.swing.JTextField |
txtDistance |
private javax.swing.JTextField |
txtMitreLimit |
private javax.swing.JTextField |
txtQuadrantSegs |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SpatialFunctionPanel() |
Modifier and Type | Method and Description |
---|---|
void |
addSpatialFunctionPanelListener(SpatialFunctionPanelListener l) |
static int |
attributeParamOffset(GeometryFunction func) |
void |
clearFunction() |
(package private) void |
clearResultButton_actionPerformed(java.awt.event.ActionEvent e) |
(package private) void |
displayAAndBCheckBox_actionPerformed(java.awt.event.ActionEvent e) |
void |
enableExecuteControl(boolean isEnabled) |
(package private) void |
execButton_actionPerformed(java.awt.event.ActionEvent e) |
void |
execFunction(GeometryFunction func,
boolean createNew) |
(package private) void |
execRepeatFunction(int count) |
(package private) void |
execToNewButton_actionPerformed(java.awt.event.ActionEvent e) |
protected void |
fireFunctionExecuted(SpatialFunctionPanelEvent e) |
private void |
functionChanged(GeometryFunction func) |
GeometryFunction |
getFunction() |
java.lang.Object[] |
getFunctionParams() |
private java.lang.Object |
getParamValue(int index) |
(package private) static void |
initLabels(javax.swing.JLabel[] paramLabel) |
boolean |
isFunctionSelected() |
(package private) void |
jbInit() |
private static int |
numNonGeomParams(GeometryFunction func) |
(package private) static void |
OLDupdateParameters(GeometryFunction func,
javax.swing.JComponent[] paramComp,
javax.swing.JLabel[] paramLabel) |
void |
removeSpatialFunctionPanelListener(SpatialFunctionPanelListener l) |
private void |
setCurrentFunction(GeometryFunction func) |
private static void |
setToolTipText(javax.swing.JComponent control,
GeometryFunction func,
int i) |
boolean |
shouldShowGeometryA() |
boolean |
shouldShowGeometryB() |
(package private) static void |
updateParameters(GeometryFunction func,
javax.swing.JComponent[] paramComp,
javax.swing.JLabel[] paramLabel) |
static java.lang.String |
valOrDefault(java.lang.String s,
java.lang.String defaultVal) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final java.lang.String[] PARAM_DEFAULT
private static java.lang.String[] capStyleItems
private static java.lang.Object[] capStyleValues
private static java.lang.String[] joinStyleItems
private static java.lang.Object[] joinStyleValues
javax.swing.JPanel panelRB
GeometryFunctionTreePanel geomFuncPanel
java.awt.GridLayout gridLayout1
java.awt.GridLayout gridLayout2
java.awt.BorderLayout borderLayout1
java.awt.BorderLayout borderLayout2
javax.swing.JPanel panelParam
javax.swing.JPanel panelExec
javax.swing.JPanel panelExecParam
java.awt.FlowLayout flowLayout
java.awt.FlowLayout flowLayout1
javax.swing.JButton execButton
javax.swing.JButton execToNewButton
private final javax.swing.ImageIcon clearIcon
private transient java.util.Vector spatialFunctionPanelListeners
private javax.swing.JPanel panelControl
private javax.swing.JCheckBox displayAAndBCheckBox
private javax.swing.JButton btnClearResult
private javax.swing.JLabel lblDistance
private javax.swing.JTextField txtDistance
private javax.swing.JLabel lblQuadSegs
private javax.swing.JTextField txtQuadrantSegs
private javax.swing.JLabel lblCapStyle
private javax.swing.JComboBox cbCapStyle
private javax.swing.JLabel lblJoinStyle
private javax.swing.JComboBox cbJoinStyle
private javax.swing.JLabel lblMitreLimit
private javax.swing.JTextField txtMitreLimit
private javax.swing.JComponent[] paramComp
private javax.swing.JLabel[] paramLabel
private GeometryFunction currentFunc
private Stopwatch timer
private javax.swing.JButton btnRepeat
void jbInit() throws java.lang.Exception
java.lang.Exception
static void initLabels(javax.swing.JLabel[] paramLabel)
public void enableExecuteControl(boolean isEnabled)
void clearResultButton_actionPerformed(java.awt.event.ActionEvent e)
void execButton_actionPerformed(java.awt.event.ActionEvent e)
void execToNewButton_actionPerformed(java.awt.event.ActionEvent e)
void execRepeatFunction(int count)
void displayAAndBCheckBox_actionPerformed(java.awt.event.ActionEvent e)
private void setCurrentFunction(GeometryFunction func)
public void execFunction(GeometryFunction func, boolean createNew)
private void functionChanged(GeometryFunction func)
static void OLDupdateParameters(GeometryFunction func, javax.swing.JComponent[] paramComp, javax.swing.JLabel[] paramLabel)
static void updateParameters(GeometryFunction func, javax.swing.JComponent[] paramComp, javax.swing.JLabel[] paramLabel)
private static void setToolTipText(javax.swing.JComponent control, GeometryFunction func, int i)
private static int numNonGeomParams(GeometryFunction func)
public static int attributeParamOffset(GeometryFunction func)
public boolean shouldShowGeometryA()
public boolean shouldShowGeometryB()
public void clearFunction()
public java.lang.Object[] getFunctionParams()
private java.lang.Object getParamValue(int index)
public static java.lang.String valOrDefault(java.lang.String s, java.lang.String defaultVal)
public boolean isFunctionSelected()
public GeometryFunction getFunction()
public void removeSpatialFunctionPanelListener(SpatialFunctionPanelListener l)
public void addSpatialFunctionPanelListener(SpatialFunctionPanelListener l)
protected void fireFunctionExecuted(SpatialFunctionPanelEvent e)