|
||||||||||
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.dottedchart.ui.DottedChartPanel
public class DottedChartPanel
DottedChartPanel. The purpose of this class is to provide a view of dotted chart
Nested 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 | |
---|---|
protected int |
border
|
protected java.util.Calendar |
cal
|
protected java.awt.Color |
colorBaseGreen
|
protected java.awt.Color |
colorBg
|
protected java.awt.Color |
colorFg
|
protected java.awt.Color |
colorLogBright
|
protected java.awt.Color |
colorLogDark
|
protected java.lang.String |
colorStandard
|
protected java.awt.Color |
colorTimeLine
|
protected java.util.HashMap |
endTimeBaseHashMap
|
protected java.util.ArrayList<java.lang.String> |
eventTypeToKeep
|
static java.lang.String[] |
HANDLE_ICONS
|
protected double |
handleRatio
|
protected double |
height2pixels
|
static java.lang.String |
ITEM_HANDLE_BOX
|
static java.lang.String |
ITEM_HANDLE_CIRCLE
|
static java.lang.String |
ITEM_HANDLE_DOT
|
static java.lang.String |
ITEM_HANDLE_DRAW_BOX
|
static java.lang.String |
ITEM_HANDLE_DRAW_CIRCLE
|
static java.lang.String |
ITEM_HANDLE_DRAW_RHOMBUS
|
static java.lang.String |
ITEM_HANDLE_DRAW_ROUND_BOX
|
static java.lang.String |
ITEM_HANDLE_DRAW_TRIANGLE
|
static java.lang.String |
ITEM_HANDLE_RHOMBUS
|
static java.lang.String |
ITEM_HANDLE_ROUND_BOX
|
static java.lang.String |
ITEM_HANDLE_TRIANGLE
|
protected ColorReference |
itemColors
|
protected java.lang.String |
itemHandle
|
protected java.util.HashMap |
itemHashMap
|
protected ShapeReference |
itemShapes
|
protected java.util.Date |
logBoundaryLeft
|
protected java.util.Date |
logBoundaryRight
|
protected int |
logLanePixStep
|
protected long |
logLaneStep
|
protected double |
milli2pixels
|
protected java.lang.String |
relativeTimeBase
|
protected java.lang.String |
shapeStandard
|
static java.lang.String |
ST_DATA
|
static java.lang.String |
ST_EVEN
|
static java.lang.String |
ST_INST
|
static java.lang.String |
ST_ORIG
|
static java.lang.String |
ST_TASK
|
static java.lang.String |
STATISTICS_OVERALL
|
static java.lang.String |
STR_NONE
|
static java.lang.String |
TIME_ACTUAL
|
static java.lang.String |
TIME_LOGICAL
|
static java.lang.String |
TIME_LOGICAL_RELATIVE
|
static java.lang.String |
TIME_RELATIVE_RATIO
|
static java.lang.String |
TIME_RELATIVE_TIME
|
protected java.util.HashMap |
timeBaseHashMap
|
protected java.lang.String |
timeOption
|
protected java.lang.String |
typeHashMap
|
protected int |
updHight
|
protected int |
updWidth
|
protected double |
viewportZoomX
|
protected double |
viewportZoomY
|
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 | |
---|---|
DottedChartPanel(DottedChartAnalysis aDCA,
java.util.HashMap aItemSets,
java.util.ArrayList<java.lang.String> aEventTypeToKeep,
java.util.ArrayList anInstanceIDs)
constructor |
Method Summary | |
---|---|
void |
addItemSets(java.util.HashMap aItemSets)
Adds a SortedSet of LogItems to be displayed as a group of items within this viewport. |
protected void |
adjustLogBoundaries()
consolidates the global log viewing area. |
protected void |
adjustWidth()
convenience method. |
long |
adjustWidthSort(long sort)
|
protected void |
assignColorByItem(AbstractLogUnit logUnit,
java.awt.Graphics g)
convenience method for internal use. |
protected java.lang.String |
assignShapeByItem(AbstractLogUnit logUnit)
convenience method for internal use. |
protected void |
calculateCurrentTime()
paints this log item panel and all contained log items as specified. |
protected void |
calculateCurrentTimeLogical_Relative()
|
protected void |
calculateCurrentTimeLogical()
|
void |
changeColor(java.lang.String st)
|
void |
changeEventTypeToKeep(java.util.ArrayList<java.lang.String> aEventTypeToKeep)
|
void |
changeInstanceTypeToKeep(java.util.ArrayList anInstanceIDs)
|
void |
changeShape(java.lang.String st)
|
void |
changeTimeOption(java.lang.String str)
|
void |
changeWidthSort(long sort)
|
void |
clearItemSets()
initializes componente, i.e. |
protected java.util.Date |
coord2time(double anX)
convenience method. |
protected long |
coord2timeMillis(double anX)
convenience method. |
ColorReference |
getColorReference()
|
java.lang.String |
getColorStandard()
|
java.util.ArrayList<org.apache.commons.math.stat.descriptive.DescriptiveStatistics> |
getDescriptiveStatistics()
|
java.util.ArrayList<java.lang.String> |
getDescriptiveStatisticsTitles()
|
java.util.Date |
getEndDateofLogUniList(java.lang.String key)
|
java.util.HashMap |
getEndTimeBaseHaspMap()
|
java.util.ArrayList<java.lang.String> |
getEventTypeToKeep()
|
int |
getHashMapSize()
|
java.util.ArrayList |
getInstanceTypeToKeep()
|
java.util.Date |
getLeftLogBoundary()
|
int |
getNumberOfLogUnits(java.lang.String key)
|
java.lang.String |
getRelativeTimeBase()
|
java.util.Date |
getRightLogBoundary()
|
java.lang.String |
getShapeStandard()
|
java.util.Date |
getStartDateofLogUniList(java.lang.String key)
|
java.util.HashMap |
getTimeBaseHaspMap()
|
java.lang.String |
getTimeOption()
|
java.lang.String |
getTypeHashMap()
|
protected static boolean |
intersects(java.util.Date d1Left,
java.util.Date d1Right,
java.util.Date d2Left,
java.util.Date d2Right)
Checks two time frames for intersection. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Required for mouselistener |
void |
mouseMoved(java.awt.event.MouseEvent e)
Shows information in a tooltip about the sequence over which the mouse moved. |
void |
paintComponent(java.awt.Graphics grx)
paints this log item panel and all contained log items as specified. |
protected void |
paintComponentLane(java.awt.Graphics g)
convenience method for internal use. |
protected void |
paintItem(int x,
int y,
java.awt.Graphics g,
java.lang.String shape)
convenience method for internal use. |
void |
redrawTitle(int xPos)
|
void |
revalidateViewportZoomX()
|
void |
setColorStandard(java.lang.String str)
|
void |
setEndTimeBaseHaspMap(java.util.HashMap aHashMap)
|
void |
setEventTypeToKeep(java.util.ArrayList<java.lang.String> aEventTypeToKeep)
|
void |
setInstanceTypeToKeep(java.util.ArrayList anInstanceIDs)
|
void |
setRelativeTimeBase(java.lang.String str)
|
void |
setShapeStandard(java.lang.String str)
|
void |
setSize(java.awt.Dimension d)
overwritten as proxy, to update mill2pixels ratio |
void |
setSize(int width,
int height)
overwritten as proxy, to update mill2pixels ratio |
void |
setTimeBaseHaspMap(java.util.HashMap aHashMap)
|
void |
setTimeOption(java.lang.String str)
|
void |
setTimeSort(long sort)
|
void |
setTypeHashMap(java.lang.String str)
|
void |
setViewportZoomX(double aZoom)
adjusts the viewable are of the log (zoom) |
void |
setViewportZoomY(double aZoom)
adjusts the viewable are of the log (zoom) |
void |
setWidthSort(long sort)
|
protected int |
time2coord(java.util.Date aTimestamp)
Convenience method. |
protected int |
time2coord(long aTimeMillis)
Convenience method. |
java.lang.String |
timeFormat(java.util.Date aDate)
|
protected int |
unit2Cord(int unit_number)
Convenience method. |
protected void |
updateMilli2pixelsRatio()
Updates the internally cached ratio between milliseconds (of events) and pixels on the screen. |
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, 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, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String STR_NONE
public static java.lang.String ITEM_HANDLE_DOT
public static java.lang.String ITEM_HANDLE_CIRCLE
public static java.lang.String ITEM_HANDLE_TRIANGLE
public static java.lang.String ITEM_HANDLE_BOX
public static java.lang.String ITEM_HANDLE_RHOMBUS
public static java.lang.String ITEM_HANDLE_ROUND_BOX
public static java.lang.String ITEM_HANDLE_DRAW_BOX
public static java.lang.String ITEM_HANDLE_DRAW_CIRCLE
public static java.lang.String ITEM_HANDLE_DRAW_TRIANGLE
public static java.lang.String ITEM_HANDLE_DRAW_RHOMBUS
public static java.lang.String ITEM_HANDLE_DRAW_ROUND_BOX
public static final java.lang.String STATISTICS_OVERALL
public static final java.lang.String TIME_ACTUAL
public static final java.lang.String TIME_RELATIVE_TIME
public static final java.lang.String TIME_RELATIVE_RATIO
public static final java.lang.String TIME_LOGICAL
public static final java.lang.String TIME_LOGICAL_RELATIVE
public static final java.lang.String ST_ORIG
public static final java.lang.String ST_TASK
public static final java.lang.String ST_INST
public static final java.lang.String ST_EVEN
public static final java.lang.String ST_DATA
public static java.lang.String[] HANDLE_ICONS
protected java.util.HashMap itemHashMap
protected java.lang.String typeHashMap
protected java.util.Date logBoundaryLeft
protected java.util.Date logBoundaryRight
protected double milli2pixels
protected double height2pixels
protected long logLaneStep
protected int logLanePixStep
protected double viewportZoomX
protected double viewportZoomY
protected int updWidth
protected int updHight
protected java.lang.String itemHandle
protected java.awt.Color colorBg
protected java.awt.Color colorFg
protected java.awt.Color colorLogDark
protected java.awt.Color colorLogBright
protected java.awt.Color colorTimeLine
protected java.awt.Color colorBaseGreen
protected java.lang.String colorStandard
protected java.lang.String shapeStandard
protected ShapeReference itemShapes
protected java.lang.String timeOption
protected java.util.HashMap timeBaseHashMap
protected java.util.HashMap endTimeBaseHashMap
protected java.lang.String relativeTimeBase
protected ColorReference itemColors
protected java.util.ArrayList<java.lang.String> eventTypeToKeep
protected int border
protected double handleRatio
protected java.util.Calendar cal
Constructor Detail |
---|
public DottedChartPanel(DottedChartAnalysis aDCA, java.util.HashMap aItemSets, java.util.ArrayList<java.lang.String> aEventTypeToKeep, java.util.ArrayList anInstanceIDs)
aItemSets
- HashMap representing Item (start) of the log to be visualizedrightBoundary
- Date representing the right boundary (end) of the log to be visualizedMethod Detail |
---|
public void setTypeHashMap(java.lang.String str)
public java.lang.String getTypeHashMap()
public void setColorStandard(java.lang.String str)
public java.lang.String getColorStandard()
public void setShapeStandard(java.lang.String str)
public java.lang.String getShapeStandard()
public void setTimeOption(java.lang.String str)
public java.lang.String getTimeOption()
public void setTimeBaseHaspMap(java.util.HashMap aHashMap)
public java.util.HashMap getTimeBaseHaspMap()
public void setEndTimeBaseHaspMap(java.util.HashMap aHashMap)
public java.util.HashMap getEndTimeBaseHaspMap()
public void setRelativeTimeBase(java.lang.String str)
public java.lang.String getRelativeTimeBase()
public java.util.ArrayList<org.apache.commons.math.stat.descriptive.DescriptiveStatistics> getDescriptiveStatistics()
public java.util.ArrayList<java.lang.String> getDescriptiveStatisticsTitles()
public java.util.Date getStartDateofLogUniList(java.lang.String key)
public java.util.Date getEndDateofLogUniList(java.lang.String key)
public int getNumberOfLogUnits(java.lang.String key)
public java.util.ArrayList<java.lang.String> getEventTypeToKeep()
public void setEventTypeToKeep(java.util.ArrayList<java.lang.String> aEventTypeToKeep)
public void changeEventTypeToKeep(java.util.ArrayList<java.lang.String> aEventTypeToKeep)
public java.util.ArrayList getInstanceTypeToKeep()
public void setInstanceTypeToKeep(java.util.ArrayList anInstanceIDs)
public void changeInstanceTypeToKeep(java.util.ArrayList anInstanceIDs)
public int getHashMapSize()
public ColorReference getColorReference()
public void addItemSets(java.util.HashMap aItemSets)
key
- reference to this item set, for e.g. later selective removalanItemSet
- expects a sorted set of 'LogItem' instances.public void clearItemSets()
protected java.lang.String assignShapeByItem(AbstractLogUnit logUnit)
logUnit
- a LogUnitprotected void assignColorByItem(AbstractLogUnit logUnit, java.awt.Graphics g)
logUnit
- a LogUnitpublic void changeColor(java.lang.String st)
public void changeShape(java.lang.String st)
public void changeTimeOption(java.lang.String str)
public void changeWidthSort(long sort)
public long adjustWidthSort(long sort)
public void setWidthSort(long sort)
public void setTimeSort(long sort)
public java.util.Date getLeftLogBoundary()
public java.util.Date getRightLogBoundary()
protected void updateMilli2pixelsRatio()
public void setSize(int width, int height)
setSize
in class java.awt.Component
public void setSize(java.awt.Dimension d)
setSize
in class java.awt.Component
public void setViewportZoomX(double aZoom)
aZoom
- fraction of the log to be viewable (within (0,1] !)public void revalidateViewportZoomX()
public void setViewportZoomY(double aZoom)
aZoom
- fraction of the log to be viewable (within (0,1] !)protected void adjustLogBoundaries()
protected int time2coord(java.util.Date aTimestamp)
aTimestamp
-
protected int unit2Cord(int unit_number)
aTimestamp
-
protected int time2coord(long aTimeMillis)
aTimeMillis
-
protected java.util.Date coord2time(double anX)
anX
-
protected long coord2timeMillis(double anX)
anX
-
protected void adjustWidth()
void
- protected static boolean intersects(java.util.Date d1Left, java.util.Date d1Right, java.util.Date d2Left, java.util.Date d2Right)
d1Left
- d1Right
- d2Left
- d2Right
-
protected void calculateCurrentTimeLogical()
protected void calculateCurrentTimeLogical_Relative()
protected void calculateCurrentTime()
g
- the graphics object used for paintingprotected void paintItem(int x, int y, java.awt.Graphics g, java.lang.String shape)
x
- horizontal anchor coordinate of the handley
- vertical anchor coordinate of the handleg
- the Graphics object used for paintingprotected void paintComponentLane(java.awt.Graphics g)
gOrig
- dMin
- date on the left boundarydMax
- date on the right boundarypublic void paintComponent(java.awt.Graphics grx)
paintComponent
in class javax.swing.JComponent
g
- the graphics object used for paintingpublic java.lang.String timeFormat(java.util.Date aDate)
public void redrawTitle(int xPos)
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
e
- MouseEventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
e
- MouseEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |