public class DottedChartPanel
extends javax.swing.JPanel
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bBottleneck |
protected boolean |
bBottleneckforInstances |
protected boolean |
bDrawLine |
protected static int |
BORDER |
protected static int |
BUFFERBORDER |
protected java.util.Calendar |
cal |
protected java.awt.Color |
colorBaseGreen |
protected java.awt.Color |
colorBg |
static java.awt.Color |
ColorBg |
protected java.awt.Color |
colorFg |
static java.awt.Color |
ColorFg |
static java.awt.Color |
ColorInnerBg |
static java.awt.Color |
ColorTextAreaBg |
protected java.awt.Color |
colorTimeLine |
protected CoordinationUtil |
coUtil |
protected DottedChartAnalysis |
dca |
protected DottedChartModel |
dcModel |
protected DottedChartOptionPanel |
dcop |
static java.lang.String[] |
HANDLE_ICONS |
protected double |
handleRatio |
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 ShapeReference |
itemShapes |
protected java.awt.image.BufferedImage |
modelBuffer |
protected static int |
SCREENLENGTH |
protected static int |
SCREENSIZE |
static java.lang.String |
ST_DRAG |
static java.lang.String |
ST_DURATION |
static java.lang.String |
ST_END_TIME |
static java.lang.String |
ST_FIRST_EVENT |
static java.lang.String |
ST_LAST_EVENT |
static java.lang.String |
ST_NAME |
static java.lang.String |
ST_SELECT |
static java.lang.String |
ST_SIZE |
static java.lang.String |
ST_SPAN |
static java.lang.String |
ST_START_TIME |
static java.lang.String |
ST_ZOOMIN |
static java.lang.String |
STR_NONE |
protected long |
timeOffset |
protected UIUtil |
uiUtil |
protected int |
updHight |
protected int |
updWidth |
protected double |
viewportZoomX |
protected double |
viewportZoomY |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
DottedChartPanel(DottedChartAnalysis aDCA)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustSlideBar() |
void |
adjustWidth()
convenience method.
|
protected void |
assignColorByItem(java.util.ArrayList<java.lang.Integer> itemlist,
java.awt.Graphics g) |
protected void |
assignColorByItem(int k,
java.awt.Graphics g) |
protected void |
assignColorByItem(java.lang.String name,
java.awt.Graphics g) |
protected java.lang.String |
assignShapeByItem(int k) |
void |
changeDots() |
protected java.awt.Graphics2D |
drawModelBuffer_Common(int imageWidth,
int imageHeight,
boolean isModel) |
protected void |
drawModelBuffer_NO_SIZE(int imageWidth,
int imageHeight,
boolean isModel) |
protected void |
drawModelBuffer(int imageWidth,
int imageHeight,
boolean isModel) |
protected void |
drawVerticalLines(java.awt.Graphics g,
int imageWidth,
int imageHeight) |
void |
generateBufferedImage(java.awt.Graphics grx,
int width,
int height) |
java.awt.image.BufferedImage |
getBufferedImage() |
ColorReference |
getColorReference() |
protected long |
getLeftRight(int k) |
void |
initBufferedImage() |
protected void |
initColorAndShapes() |
protected void |
makeTooltip(java.awt.Point p1,
java.awt.Point p2) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e)
Required for mouselistener
|
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e)
Shows information in a tooltip about the sequence over which the mouse
moved.
|
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
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,
int imageWidth,
int imageHeight,
boolean isModel) |
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 |
setViewportZoomIn()
adjusts the viewable are of the log (zoom)
|
void |
setViewportZoomX(double aZoom)
adjusts the viewable are of the log (zoom)
|
void |
setViewportZoomY(double aZoom)
adjusts the viewable are of the log (zoom)
|
java.awt.Point |
zoomInViewPort()
adjusts the viewable are of the log (zoom)
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, 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, updateadd, 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, validateTreeaction, 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, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static java.awt.Color ColorBg
public static java.awt.Color ColorInnerBg
public static java.awt.Color ColorFg
public static java.awt.Color ColorTextAreaBg
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 ST_NAME
public static final java.lang.String ST_SIZE
public static final java.lang.String ST_SPAN
public static final java.lang.String ST_FIRST_EVENT
public static final java.lang.String ST_LAST_EVENT
public static final java.lang.String ST_DURATION
public static final java.lang.String ST_START_TIME
public static final java.lang.String ST_END_TIME
public static final java.lang.String ST_ZOOMIN
public static final java.lang.String ST_DRAG
public static final java.lang.String ST_SELECT
protected java.awt.image.BufferedImage modelBuffer
protected static final int SCREENLENGTH
protected static final int SCREENSIZE
protected long timeOffset
public static java.lang.String[] HANDLE_ICONS
protected DottedChartAnalysis dca
protected DottedChartOptionPanel dcop
protected UIUtil uiUtil
protected CoordinationUtil coUtil
protected DottedChartModel dcModel
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 colorTimeLine
protected java.awt.Color colorBaseGreen
protected ShapeReference itemShapes
protected ColorReference itemColors
protected static int BORDER
protected static int BUFFERBORDER
protected double handleRatio
protected java.util.Calendar cal
protected boolean bDrawLine
protected boolean bBottleneck
protected boolean bBottleneckforInstances
public DottedChartPanel(DottedChartAnalysis aDCA)
aDCA - DottedChartAnalysis the Dotted Chart Analysis to be displayedaDcModel - DottedChartModel the dottedchartmodel that includes data
structure for dotted chartpublic void changeDots()
public ColorReference getColorReference()
public void setSize(int width,
int height)
setSize in class java.awt.Componentpublic void setSize(java.awt.Dimension d)
setSize in class java.awt.Componentpublic void setViewportZoomX(double aZoom)
aZoom - fraction of the log to be viewable (within (0,1] !)public void setViewportZoomY(double aZoom)
aZoom - fraction of the log to be viewable (within (0,1] !)public void setViewportZoomIn()
public java.awt.Point zoomInViewPort()
public void adjustSlideBar()
public void initBufferedImage()
public void adjustWidth()
void - public void paintComponent(java.awt.Graphics grx)
paintComponent in class javax.swing.JComponentg - the graphics object used for paintingprotected java.awt.Graphics2D drawModelBuffer_Common(int imageWidth,
int imageHeight,
boolean isModel)
protected long getLeftRight(int k)
protected void drawModelBuffer(int imageWidth,
int imageHeight,
boolean isModel)
protected void drawModelBuffer_NO_SIZE(int imageWidth,
int imageHeight,
boolean isModel)
protected void paintComponentLane(java.awt.Graphics g,
int imageWidth,
int imageHeight,
boolean isModel)
protected void drawVerticalLines(java.awt.Graphics g,
int imageWidth,
int imageHeight)
public java.awt.image.BufferedImage getBufferedImage()
public void generateBufferedImage(java.awt.Graphics grx,
int width,
int height)
protected void initColorAndShapes()
protected java.lang.String assignShapeByItem(int k)
protected void assignColorByItem(java.lang.String name,
java.awt.Graphics g)
protected void assignColorByItem(java.util.ArrayList<java.lang.Integer> itemlist,
java.awt.Graphics g)
protected void assignColorByItem(int k,
java.awt.Graphics g)
protected void makeTooltip(java.awt.Point p1,
java.awt.Point p2)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - MouseEventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - MouseEventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListener