org.processmining.analysis.performance.dottedchart.ui
Class DottedChartPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.processmining.analysis.performance.dottedchart.ui.DottedChartPanel
All Implemented Interfaces:
java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class DottedChartPanel
extends javax.swing.JPanel
implements java.awt.event.MouseMotionListener

DottedChartPanel. The purpose of this class is to provide a view of dotted chart

Author:
Minseok Song
See Also:
Serialized Form

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

STR_NONE

public static java.lang.String STR_NONE

ITEM_HANDLE_DOT

public static java.lang.String ITEM_HANDLE_DOT

ITEM_HANDLE_CIRCLE

public static java.lang.String ITEM_HANDLE_CIRCLE

ITEM_HANDLE_TRIANGLE

public static java.lang.String ITEM_HANDLE_TRIANGLE

ITEM_HANDLE_BOX

public static java.lang.String ITEM_HANDLE_BOX

ITEM_HANDLE_RHOMBUS

public static java.lang.String ITEM_HANDLE_RHOMBUS

ITEM_HANDLE_ROUND_BOX

public static java.lang.String ITEM_HANDLE_ROUND_BOX

ITEM_HANDLE_DRAW_BOX

public static java.lang.String ITEM_HANDLE_DRAW_BOX

ITEM_HANDLE_DRAW_CIRCLE

public static java.lang.String ITEM_HANDLE_DRAW_CIRCLE

ITEM_HANDLE_DRAW_TRIANGLE

public static java.lang.String ITEM_HANDLE_DRAW_TRIANGLE

ITEM_HANDLE_DRAW_RHOMBUS

public static java.lang.String ITEM_HANDLE_DRAW_RHOMBUS

ITEM_HANDLE_DRAW_ROUND_BOX

public static java.lang.String ITEM_HANDLE_DRAW_ROUND_BOX

STATISTICS_OVERALL

public static final java.lang.String STATISTICS_OVERALL
See Also:
Constant Field Values

TIME_ACTUAL

public static final java.lang.String TIME_ACTUAL
See Also:
Constant Field Values

TIME_RELATIVE_TIME

public static final java.lang.String TIME_RELATIVE_TIME
See Also:
Constant Field Values

TIME_RELATIVE_RATIO

public static final java.lang.String TIME_RELATIVE_RATIO
See Also:
Constant Field Values

TIME_LOGICAL

public static final java.lang.String TIME_LOGICAL
See Also:
Constant Field Values

TIME_LOGICAL_RELATIVE

public static final java.lang.String TIME_LOGICAL_RELATIVE
See Also:
Constant Field Values

ST_ORIG

public static final java.lang.String ST_ORIG
See Also:
Constant Field Values

ST_TASK

public static final java.lang.String ST_TASK
See Also:
Constant Field Values

ST_INST

public static final java.lang.String ST_INST
See Also:
Constant Field Values

ST_EVEN

public static final java.lang.String ST_EVEN
See Also:
Constant Field Values

ST_DATA

public static final java.lang.String ST_DATA
See Also:
Constant Field Values

HANDLE_ICONS

public static java.lang.String[] HANDLE_ICONS

itemHashMap

protected java.util.HashMap itemHashMap

typeHashMap

protected java.lang.String typeHashMap

logBoundaryLeft

protected java.util.Date logBoundaryLeft

logBoundaryRight

protected java.util.Date logBoundaryRight

milli2pixels

protected double milli2pixels

height2pixels

protected double height2pixels

logLaneStep

protected long logLaneStep

logLanePixStep

protected int logLanePixStep

viewportZoomX

protected double viewportZoomX

viewportZoomY

protected double viewportZoomY

updWidth

protected int updWidth

updHight

protected int updHight

itemHandle

protected java.lang.String itemHandle

colorBg

protected java.awt.Color colorBg

colorFg

protected java.awt.Color colorFg

colorLogDark

protected java.awt.Color colorLogDark

colorLogBright

protected java.awt.Color colorLogBright

colorTimeLine

protected java.awt.Color colorTimeLine

colorBaseGreen

protected java.awt.Color colorBaseGreen

colorStandard

protected java.lang.String colorStandard

shapeStandard

protected java.lang.String shapeStandard

itemShapes

protected ShapeReference itemShapes

timeOption

protected java.lang.String timeOption

timeBaseHashMap

protected java.util.HashMap timeBaseHashMap

endTimeBaseHashMap

protected java.util.HashMap endTimeBaseHashMap

relativeTimeBase

protected java.lang.String relativeTimeBase

itemColors

protected ColorReference itemColors

eventTypeToKeep

protected java.util.ArrayList<java.lang.String> eventTypeToKeep

border

protected int border

handleRatio

protected double handleRatio

cal

protected java.util.Calendar cal
Constructor Detail

DottedChartPanel

public DottedChartPanel(DottedChartAnalysis aDCA,
                        java.util.HashMap aItemSets,
                        java.util.ArrayList<java.lang.String> aEventTypeToKeep,
                        java.util.ArrayList anInstanceIDs)
constructor

Parameters:
aItemSets - HashMap representing Item (start) of the log to be visualized
rightBoundary - Date representing the right boundary (end) of the log to be visualized
Method Detail

setTypeHashMap

public void setTypeHashMap(java.lang.String str)

getTypeHashMap

public java.lang.String getTypeHashMap()

setColorStandard

public void setColorStandard(java.lang.String str)

getColorStandard

public java.lang.String getColorStandard()

setShapeStandard

public void setShapeStandard(java.lang.String str)

getShapeStandard

public java.lang.String getShapeStandard()

setTimeOption

public void setTimeOption(java.lang.String str)

getTimeOption

public java.lang.String getTimeOption()

setTimeBaseHaspMap

public void setTimeBaseHaspMap(java.util.HashMap aHashMap)

getTimeBaseHaspMap

public java.util.HashMap getTimeBaseHaspMap()

setEndTimeBaseHaspMap

public void setEndTimeBaseHaspMap(java.util.HashMap aHashMap)

getEndTimeBaseHaspMap

public java.util.HashMap getEndTimeBaseHaspMap()

setRelativeTimeBase

public void setRelativeTimeBase(java.lang.String str)

getRelativeTimeBase

public java.lang.String getRelativeTimeBase()

getDescriptiveStatistics

public java.util.ArrayList<org.apache.commons.math.stat.descriptive.DescriptiveStatistics> getDescriptiveStatistics()

getDescriptiveStatisticsTitles

public java.util.ArrayList<java.lang.String> getDescriptiveStatisticsTitles()

getStartDateofLogUniList

public java.util.Date getStartDateofLogUniList(java.lang.String key)

getEndDateofLogUniList

public java.util.Date getEndDateofLogUniList(java.lang.String key)

getNumberOfLogUnits

public int getNumberOfLogUnits(java.lang.String key)

getEventTypeToKeep

public java.util.ArrayList<java.lang.String> getEventTypeToKeep()

setEventTypeToKeep

public void setEventTypeToKeep(java.util.ArrayList<java.lang.String> aEventTypeToKeep)

changeEventTypeToKeep

public void changeEventTypeToKeep(java.util.ArrayList<java.lang.String> aEventTypeToKeep)

getInstanceTypeToKeep

public java.util.ArrayList getInstanceTypeToKeep()

setInstanceTypeToKeep

public void setInstanceTypeToKeep(java.util.ArrayList anInstanceIDs)

changeInstanceTypeToKeep

public void changeInstanceTypeToKeep(java.util.ArrayList anInstanceIDs)

getHashMapSize

public int getHashMapSize()

getColorReference

public ColorReference getColorReference()

addItemSets

public void addItemSets(java.util.HashMap aItemSets)
Adds a SortedSet of LogItems to be displayed as a group of items within this viewport. They are referenced by a string key, to be able to e.g. selectively remove groups of items later on.

Parameters:
key - reference to this item set, for e.g. later selective removal
anItemSet - expects a sorted set of 'LogItem' instances.

clearItemSets

public void clearItemSets()
initializes componente, i.e. all item sets formerly displayed are removed.


assignShapeByItem

protected java.lang.String assignShapeByItem(AbstractLogUnit logUnit)
convenience method for internal use. return a color of a LogUnit.

Parameters:
logUnit - a LogUnit

assignColorByItem

protected void assignColorByItem(AbstractLogUnit logUnit,
                                 java.awt.Graphics g)
convenience method for internal use. return a color of a LogUnit.

Parameters:
logUnit - a LogUnit

changeColor

public void changeColor(java.lang.String st)

changeShape

public void changeShape(java.lang.String st)

changeTimeOption

public void changeTimeOption(java.lang.String str)

changeWidthSort

public void changeWidthSort(long sort)

adjustWidthSort

public long adjustWidthSort(long sort)

setWidthSort

public void setWidthSort(long sort)

setTimeSort

public void setTimeSort(long sort)

getLeftLogBoundary

public java.util.Date getLeftLogBoundary()
Returns:
the left log viewport boundary

getRightLogBoundary

public java.util.Date getRightLogBoundary()
Returns:
the right log viewport boundary

updateMilli2pixelsRatio

protected void updateMilli2pixelsRatio()
Updates the internally cached ratio between milliseconds (of events) and pixels on the screen. Interpretation: displayedXcoordinate = timeInMillis * milli2pixels;


setSize

public void setSize(int width,
                    int height)
overwritten as proxy, to update mill2pixels ratio

Overrides:
setSize in class java.awt.Component

setSize

public void setSize(java.awt.Dimension d)
overwritten as proxy, to update mill2pixels ratio

Overrides:
setSize in class java.awt.Component

setViewportZoomX

public void setViewportZoomX(double aZoom)
adjusts the viewable are of the log (zoom)

Parameters:
aZoom - fraction of the log to be viewable (within (0,1] !)

revalidateViewportZoomX

public void revalidateViewportZoomX()

setViewportZoomY

public void setViewportZoomY(double aZoom)
adjusts the viewable are of the log (zoom)

Parameters:
aZoom - fraction of the log to be viewable (within (0,1] !)

adjustLogBoundaries

protected void adjustLogBoundaries()
consolidates the global log viewing area. Iterates through all contained subsets and compares their boundaries to the current log boundaries set. If necessary, global log boundaries are adjusted to the outside (i.e., only extended)


time2coord

protected int time2coord(java.util.Date aTimestamp)
Convenience method. Transforms a timestamp (Date) into the corresponding horizontal position within the viewport.

Parameters:
aTimestamp -
Returns:

unit2Cord

protected int unit2Cord(int unit_number)
Convenience method. Transforms a timestamp (Date) into the corresponding horizontal position within the viewport.

Parameters:
aTimestamp -
Returns:

time2coord

protected int time2coord(long aTimeMillis)
Convenience method. Transforms a timestamp (milliseconds) into the corresponding horizontal position within the viewport.

Parameters:
aTimeMillis -
Returns:

coord2time

protected java.util.Date coord2time(double anX)
convenience method. transforms a given horizontal coordinate within the viewport into the correspondig timestamp (Date) in the log space.

Parameters:
anX -
Returns:

coord2timeMillis

protected long coord2timeMillis(double anX)
convenience method. transforms a given horizontal coordinate within the viewport into the correspondig timestamp (milliseconds) in the log space.

Parameters:
anX -
Returns:

adjustWidth

protected void adjustWidth()
convenience method. adjust width on the screen

Parameters:
void -

intersects

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. Interpret as follows: one timeframe is delimited by d1Left on the right and d1Right on the right, this is the reference frame. the second timeframe is delimited by d2Left/Right. This method checks, if any part of the second timeframe is contained within the first timeframe.

Parameters:
d1Left -
d1Right -
d2Left -
d2Right -
Returns:

calculateCurrentTimeLogical

protected void calculateCurrentTimeLogical()

calculateCurrentTimeLogical_Relative

protected void calculateCurrentTimeLogical_Relative()

calculateCurrentTime

protected void calculateCurrentTime()
paints this log item panel and all contained log items as specified.

Parameters:
g - the graphics object used for painting

paintItem

protected void paintItem(int x,
                         int y,
                         java.awt.Graphics g,
                         java.lang.String shape)
convenience method for internal use. paints a log item handle visualization.

Parameters:
x - horizontal anchor coordinate of the handle
y - vertical anchor coordinate of the handle
g - the Graphics object used for painting

paintComponentLane

protected void paintComponentLane(java.awt.Graphics g)
convenience method for internal use. paints the log lane, with time indicators.

Parameters:
gOrig -
dMin - date on the left boundary
dMax - date on the right boundary

paintComponent

public void paintComponent(java.awt.Graphics grx)
paints this log item panel and all contained log items as specified.

Overrides:
paintComponent in class javax.swing.JComponent
Parameters:
g - the graphics object used for painting

timeFormat

public java.lang.String timeFormat(java.util.Date aDate)

redrawTitle

public void redrawTitle(int xPos)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Required for mouselistener

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
e - MouseEvent

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Shows information in a tooltip about the sequence over which the mouse moved.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
e - MouseEvent