verinec.importer.analysis.traceroute
Class StartTraceRoute.ConfigPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
verinec.importer.analysis.traceroute.StartTraceRoute.ConfigPanel
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, Accessible, IConfigPanel
- Enclosing class:
- StartTraceRoute
public static class StartTraceRoute.ConfigPanel
- extends JPanel
- implements IConfigPanel
Configuration for the traceroutes.
Provides method to access configured settings.
- Author:
- Martial Seifriz, david.buchmann at unifr.ch
- See Also:
- Serialized Form
|
Method Summary |
private int |
getAlgorithmID()
Return the ID of the used algorithm. |
Element |
getConfigurationXML()
Get the configuration for the traceroute modul. |
private int |
getMaxHops()
Return the Number of maximum Hops between the source and the target |
String |
getSubnet()
Return the subnet configured to be scanned. |
private int |
getSynTRs()
Return the nubmer of traceroutes which can be executed synchronous |
private int |
getTimeOut()
Return the time out in ms between sending and receiving of a message. |
boolean |
isActive()
Whether this panel is active. |
boolean |
isConfigValid()
Whether the configuration in this panel is valid. |
void |
restore(Element parent)
Restore configuration from XML. |
boolean |
testHost(HostCommRenderer host)
Test whether the host should be traced according to filter rules. |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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 |
| Methods inherited from class java.awt.Container |
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
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, hide, 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, transferFocusUpCycle |
chkActive
public JCheckBox chkActive
- CheckBox to choose if the traceroute modul should be used.
spTimeOut
private JSpinner spTimeOut
- TimeOut Spinner
spSynTRs
private JSpinner spSynTRs
- Synchronous traceroute Spinner
lblSynTRs
private JLabel lblSynTRs
trOptionPanel
private JPanel trOptionPanel
- Option Panel
txtSubnet
private JTextField txtSubnet
- Textfield to specified the subnet mask to filter
lblSubnet
private JLabel lblSubnet
spHops
private JSpinner spHops
- Max hops Spinner
lblHops
private JLabel lblHops
lblTimeOut
private JLabel lblTimeOut
lblAlgorithm
private JLabel lblAlgorithm
cbAlgorithm
private JComboBox cbAlgorithm
- ComboBox to choose the algotithm
cbAlgoContent
private StartTraceRoute.AlgorithmItem[] cbAlgoContent
- The list of algorithms, in the same order as in combo box.
StartTraceRoute.ConfigPanel
public StartTraceRoute.ConfigPanel(AnalysisConfigPanel parent)
- Create the panel.
- Parameters:
parent - The containing panel.
getConfigurationXML
public Element getConfigurationXML()
- Get the configuration for the traceroute modul.
- Specified by:
getConfigurationXML in interface IConfigPanel
- Returns:
- Configuration element.
restore
public void restore(Element parent)
- Restore configuration from XML.
- Specified by:
restore in interface IConfigPanel
- Parameters:
parent - Element containing the element returned by getConfigurationXML()
isActive
public boolean isActive()
- Whether this panel is active.
If either the checkbox is not selected (user choice)
or if the panel is not enabled (simulation), the scan should be omitted.
- Returns:
- Whether the checkbox is selected or not.
isConfigValid
public boolean isConfigValid()
- Whether the configuration in this panel is valid.
- Specified by:
isConfigValid in interface IConfigPanel
- Returns:
- Always valid, it can only be on or off.
getSubnet
public String getSubnet()
- Return the subnet configured to be scanned.
- Returns:
- String an IP has to start with if it should be scanned.
getMaxHops
private int getMaxHops()
- Return the Number of maximum Hops between the source and the target
- Returns:
- int Number of maximum Hops.
getTimeOut
private int getTimeOut()
- Return the time out in ms between sending and receiving of a message.
- Returns:
- int The time out.
getSynTRs
private int getSynTRs()
- Return the nubmer of traceroutes which can be executed synchronous
- Returns:
- int The number of synchronous Traceroutes.
getAlgorithmID
private int getAlgorithmID()
- Return the ID of the used algorithm.
- Returns:
- int The algorithm ID.
testHost
public boolean testHost(HostCommRenderer host)
- Test whether the host should be traced according to filter rules.
- Parameters:
host - The host to test.
- Returns:
- True if host should be scanned, false otherwise.