|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.processmining.analysis.performance.PerformanceConfiguration
public class PerformanceConfiguration
This class is needed to allow the user to set options, such as the boundaries of bottleneck levels, i.e. the waiting time-levels, and colors corresponding to these levels that can be high, medium or low can be set and given a color. As well as the timesort and the number of decimals to use.
PerformanceAnalysisSettings
,
PerformanceAnalysisGUI
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
PerformanceConfiguration()
Constructor to build the GUI |
|
PerformanceConfiguration(java.util.ArrayList levelColors,
java.util.ArrayList bounds,
java.lang.String sort,
int decimals,
int[] settings)
Just as the normal constructor, but also initializes the options, with the parameter-values |
Method Summary | |
---|---|
void |
addAnalysisResult(AnalysisResult result)
Adds another result object to the list of analysis results held by this category. |
void |
changeDisplay(ExtendedPlace selected)
Hides the radioPanel and displays the settingsPanel. |
void |
closeAdvancedFrames()
Closes all advanced settings frames that were opened from this performance configuration |
void |
disableAll()
Disables all buttons, comboboxes and input fields |
void |
enableAll()
Enables all buttons, comboboxes and input fields |
int[] |
getAdvancedSettings()
Returns an array containing the advanced settings |
boolean |
getAllSelected()
Returns true if the radioButton allPlacesButton has been selected, false if thisPlaceButton has been selected instead. |
java.util.ArrayList |
getBoundaries()
Retrieves the list of bounds between waiting time levels, starting with the lowest bound |
java.util.ArrayList |
getColors()
Retrieves the list of colors used (starting with lowest waiting time level) |
int |
getDecimalPlaces()
Returns the number of |
boolean |
getManualSelected()
Returns true if manual settings have been selected, else (use auto-settings) false. |
java.util.HashSet |
getResultObjects()
Gets the results needed to initialize the GUI for this top level category. |
javax.swing.JPanel |
getResultPanel()
Sets the actual result contents of the panel representing the belonging kind of analysis perspective (only used for man categories, that is, top-level objects in the tree). |
ExtendedPlace |
getSelectedPlace()
returns the selected place |
long |
getTimeDivider()
Returns the timeDivider corresponding to the timeSort, that is, the number through which milliseconds have to be divided to get the right timesort |
java.lang.String |
getTimesort()
Returns the timesort in which time metrics should be displayed |
void |
setAdvancedSettings(int[] settings)
adjusts the advanced settings and closes all advanced settings frames |
void |
setResultPanel(AnalysisGUI panel)
Assigns the GUI containing the results for that main analysis category. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PerformanceConfiguration()
public PerformanceConfiguration(java.util.ArrayList levelColors, java.util.ArrayList bounds, java.lang.String sort, int decimals, int[] settings)
levelColors
- ArrayList: contains the colors corresponding to the
different time levelsbounds
- ArrayList: contains the boundssort
- String: contains the timeSort in which is measureddecimals
- int: number of decimal placessettings
- int[]: the advanced options usedMethod Detail |
---|
public void disableAll()
public void enableAll()
public void changeDisplay(ExtendedPlace selected)
selected
- ExtendedPlace: the selected placepublic void closeAdvancedFrames()
public void addAnalysisResult(AnalysisResult result)
result
- the new result objectpublic void setResultPanel(AnalysisGUI panel)
AnalysisResults
class.
panel
- the results panelpublic java.util.HashSet getResultObjects()
public javax.swing.JPanel getResultPanel()
AnalysisResults
class.
setResultPanel(org.processmining.framework.models.petrinet.algorithms.logReplay.AnalysisGUI)
public int getDecimalPlaces()
public java.lang.String getTimesort()
public long getTimeDivider()
public java.util.ArrayList getBoundaries()
public java.util.ArrayList getColors()
public int[] getAdvancedSettings()
public boolean getManualSelected()
public boolean getAllSelected()
public ExtendedPlace getSelectedPlace()
public void setAdvancedSettings(int[] settings)
settings
- int[]: the settings to which the advanced settings are to
be set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |