public class TracesCanvas extends Canvas implements MouseListener, MouseMotionListener
Canvas.AccessibleAWTCanvasComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
Hashtable |
actors |
static int |
ACTORS_STRIPE |
Image |
actorsImage |
Hashtable |
arrows |
Color[] |
ARROWS_COLOR |
Hashtable |
arrowsColors |
tools.tracesviewer.Arrow |
arrowTipTool |
Image |
backgroundImage |
TracesMessage |
debugTracesMessage |
static int |
FIRST_ACTOR_GAP |
static int |
FIRST_ARROW_GAP |
int |
HORIZONTAL_GAP |
boolean |
isAnimated |
static int |
LAST_ACTOR_GAP |
static int |
LAST_ARROW_GAP |
TextArea |
messageContentTextArea |
tools.tracesviewer.Arrow |
newArrow |
tools.tracesviewer.Arrow |
oldArrow |
Color |
SELECTED_COLOR |
String |
selectedArrowName |
String |
tracesOrigin |
TracesSession |
tracesSession |
TracesViewer |
tracesViewer |
static int |
VERTICAL_GAP |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
TracesCanvas(TracesSession tracesSession,
Image backgroundImage,
String trueName,
int horizontalGap,
TracesViewer tracesViewer) |
TracesCanvas(TracesSession tracesSession,
TextArea messageContentTextArea,
String trueName,
TracesViewer tracesViewer) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignColors() |
void |
constructActors() |
void |
constructArrows() |
void |
displayInfo(int x,
int y) |
void |
drawArrows(Graphics g) |
void |
drawTop(Graphics g) |
tools.tracesviewer.Arrow |
getArrow(int x,
int y) |
tools.tracesviewer.Arrow |
getArrowInfo(int x,
int y) |
Dimension |
getPreferredSize() |
boolean |
isOnArrow(int x,
int y) |
boolean |
isOnInfo(int x,
int y) |
void |
mouseClicked(MouseEvent p1) |
void |
mouseDragged(MouseEvent p1) |
void |
mouseEntered(MouseEvent p1) |
void |
mouseExited(MouseEvent p1) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent p1) |
void |
paint(Graphics g) |
void |
refreshTracesCanvas(TracesSession tracesSession,
String tracesOrigin) |
void |
selectMessage(int x,
int y) |
void |
setBackground(Graphics g) |
void |
showTipTool(int x,
int y) |
void |
unDisplayInfo() |
void |
unselectAllArrows() |
void |
unShowTipTool() |
void |
unvisibleAllArrows() |
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, updateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validatepublic static int FIRST_ACTOR_GAP
public int HORIZONTAL_GAP
public static int ACTORS_STRIPE
public static int FIRST_ARROW_GAP
public static int VERTICAL_GAP
public static int LAST_ARROW_GAP
public static int LAST_ACTOR_GAP
public Color SELECTED_COLOR
public Color[] ARROWS_COLOR
public String selectedArrowName
public tools.tracesviewer.Arrow newArrow
public tools.tracesviewer.Arrow oldArrow
public Image actorsImage
public Image backgroundImage
public TracesSession tracesSession
public TextArea messageContentTextArea
public String tracesOrigin
public Hashtable actors
public Hashtable arrows
public Hashtable arrowsColors
public boolean isAnimated
public tools.tracesviewer.Arrow arrowTipTool
public TracesViewer tracesViewer
public TracesMessage debugTracesMessage
public TracesCanvas(TracesSession tracesSession, TextArea messageContentTextArea, String trueName, TracesViewer tracesViewer)
public TracesCanvas(TracesSession tracesSession, Image backgroundImage, String trueName, int horizontalGap, TracesViewer tracesViewer)
public Dimension getPreferredSize()
getPreferredSize in class Componentpublic void refreshTracesCanvas(TracesSession tracesSession, String tracesOrigin)
public void drawTop(Graphics g)
public void constructActors()
public void constructArrows()
public void assignColors()
public tools.tracesviewer.Arrow getArrow(int x,
int y)
public tools.tracesviewer.Arrow getArrowInfo(int x,
int y)
public void selectMessage(int x,
int y)
public void showTipTool(int x,
int y)
public void unShowTipTool()
public void drawArrows(Graphics g)
public void unvisibleAllArrows()
public void unselectAllArrows()
public boolean isOnArrow(int x,
int y)
public boolean isOnInfo(int x,
int y)
public void displayInfo(int x,
int y)
public void unDisplayInfo()
public void setBackground(Graphics g)
public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent p1)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent p1)
mouseEntered in interface MouseListenerpublic void mouseClicked(MouseEvent p1)
mouseClicked in interface MouseListenerpublic void mouseExited(MouseEvent p1)
mouseExited in interface MouseListenerpublic void mouseDragged(MouseEvent p1)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerCopyright © 2018. All Rights Reserved.