public class PPMChartPanel
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 |
static java.lang.String |
BOX |
protected static int |
BUFFERBORDER |
protected java.util.Calendar |
cal |
protected PPMChartAnalysis |
cca |
protected PPMChartModel |
ccModel |
protected PPMChartOptionPanel |
ccop |
static java.lang.String |
CIRCLE |
protected java.awt.Color |
colorBaseGreen |
protected java.awt.Color |
colorBg |
static java.awt.Color |
ColorBg |
protected java.awt.Color |
colorChunkLine |
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 |
static java.lang.String |
DOT |
static java.lang.String[] |
HANDLE_ICONS |
protected double |
handleRatio |
protected ColorReference |
itemColors |
protected java.lang.String |
itemHandle |
protected ShapeReference |
itemShapes |
protected java.awt.image.BufferedImage |
modelBuffer |
static java.lang.String |
RHOMBUS |
protected static int |
SCREENLENGTH |
protected static int |
SCREENSIZE |
static java.lang.String |
ST_CREATE_ORDER |
static java.lang.String |
ST_DIST_START |
static java.lang.String |
ST_DRAG |
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_ZOOMIN |
static java.lang.String |
STR_NONE |
protected long |
timeOffset |
static java.lang.String |
TRIANGLE |
protected UIUtil |
uiUtil |
protected int |
updHight |
protected int |
updWidth |
protected double |
viewportZoomX |
protected double |
viewportZoomY |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
PPMChartPanel(PPMChartAnalysis aCCA) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustSlideBar() |
void |
adjustWidth() |
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 void |
drawChunkLines(java.awt.Graphics g,
int imageWidth,
int imageHeight) |
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 |
export(java.io.File f) |
void |
generateBufferedImage(java.awt.Graphics grx,
int width,
int height) |
java.awt.image.BufferedImage |
getBufferedImage() |
ColorReference |
getColorReference() |
java.util.ArrayList<org.apache.commons.math3.stat.descriptive.DescriptiveStatistics> |
getDescriptiveStatistics() |
protected long |
getLeftRight(int k) |
ShapeReference |
getShapeReference() |
void |
initBufferedImage() |
protected void |
initColorAndShapes() |
protected boolean |
isFilteredAway(int k) |
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) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paintComponent(java.awt.Graphics grx) |
protected void |
paintComponentLane(java.awt.Graphics g,
int imageWidth,
int imageHeight,
boolean isModel) |
void |
setSize(java.awt.Dimension d) |
void |
setSize(int width,
int height) |
void |
setViewportZoomIn() |
void |
setViewportZoomX(double aZoom) |
void |
setViewportZoomY(double aZoom) |
java.awt.Point |
zoomInViewPort() |
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 DOT
public static java.lang.String CIRCLE
public static java.lang.String TRIANGLE
public static java.lang.String BOX
public static java.lang.String RHOMBUS
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_DIST_START
public static final java.lang.String ST_CREATE_ORDER
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_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 PPMChartAnalysis cca
protected PPMChartOptionPanel ccop
protected UIUtil uiUtil
protected CoordinationUtil coUtil
protected PPMChartModel ccModel
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 colorChunkLine
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 PPMChartPanel(PPMChartAnalysis aCCA)
public void export(java.io.File f)
throws java.io.IOException
java.io.IOExceptionpublic void changeDots()
public java.util.ArrayList<org.apache.commons.math3.stat.descriptive.DescriptiveStatistics> getDescriptiveStatistics()
public ColorReference getColorReference()
public ShapeReference getShapeReference()
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)
public void setViewportZoomY(double aZoom)
public void setViewportZoomIn()
public java.awt.Point zoomInViewPort()
public void adjustSlideBar()
public void initBufferedImage()
public void adjustWidth()
public void paintComponent(java.awt.Graphics grx)
paintComponent in class javax.swing.JComponentprotected 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)
protected void drawChunkLines(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 boolean isFilteredAway(int k)
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.MouseMotionListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic 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