com.vm.visual
Class VMPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--com.vm.visual.VMPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class VMPanel
extends java.awt.Panel

See Also:
Serialized Form

Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  java.awt.Color arrowColor
           
protected  java.awt.Color backgroundcolor
           
protected  int dx
           
protected  int dx3d
           
protected  int dy
           
protected  int dy3d
           
protected  int dz3d
           
protected  java.awt.FontMetrics fm
           
 java.awt.Scrollbar horz
           
protected  java.awt.Color nodeColor
           
protected  java.awt.Graphics offgraphics
           
protected  java.awt.Image offscreen
           
protected  java.awt.Dimension offscreensize
           
protected  boolean picked
           
protected  int picked_x
           
protected  int picked_y
           
protected  VMNode pickednode
           
 VMProjector projector
           
protected  java.awt.Color selectColor
           
protected  VMNode selectednode
           
 VMSpace space
           
protected  java.awt.Color textColor
           
 java.awt.Scrollbar vert
           
protected  java.lang.Thread worker
           
protected  int xmax
           
protected  int xmin
           
protected  int ymax
           
protected  int ymin
           
protected  int zmax
           
protected  int zmin
           
 
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
VMPanel(VMSpace i_space)
           
 
Method Summary
static java.awt.Color colorFromString(java.lang.String i_color, java.awt.Color i_defaultcolor)
           
protected  void drawArrow(java.awt.Graphics g, int x1, int y1, int x2, int y2)
           
protected  void drawArrow(java.awt.Graphics g, int x1, int y1, int x2, int y2, boolean bMiddleArrow, java.awt.Color drawColor)
          Need to be merged
protected  void drawNode_old_and_not_used(java.awt.Graphics g, VMNode n, java.awt.FontMetrics fm, boolean i_shadow, java.awt.Color drawColor)
          Need to be merged
 boolean mouseDown(java.awt.Event evt, int x, int y)
           
 boolean mouseDrag(java.awt.Event evt, int x, int y)
           
 boolean mouseUp(java.awt.Event evt, int x, int y)
           
 void paint(java.awt.Graphics g)
           
 void paintLink(java.awt.Graphics g, VMNode node)
           
 void paintLink(java.awt.Graphics g, VMNode node, java.awt.FontMetrics fm)
           
 void paintLink(java.awt.Graphics g, VMNode node, java.awt.FontMetrics fm, java.lang.String linktype, boolean inverseDirection)
           
 void paintNode(java.awt.Graphics g, VMNode n, boolean i_shadow)
           
 void paintNode(java.awt.Graphics g, VMNode n, java.awt.FontMetrics fm, boolean i_shadow)
           
protected  void paintText(java.lang.String text, java.awt.Graphics g, int x, int y)
          Added to fix Graphics.translate bug in JDK 117
 void resetColors()
           
 void resetSize()
          scrollbars fixed since JDK 117 - Anton
 void run()
           
 void start()
           
 void stop()
           
static java.lang.String stringFromColor(java.awt.Color i_color)
           
 void update(java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseEnter, mouseExit, mouseMove, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

space

public VMSpace space

worker

protected java.lang.Thread worker

pickednode

protected VMNode pickednode

selectednode

protected VMNode selectednode

picked_x

protected int picked_x

picked_y

protected int picked_y

picked

protected boolean picked

offscreen

protected java.awt.Image offscreen

offscreensize

protected java.awt.Dimension offscreensize

offgraphics

protected java.awt.Graphics offgraphics

fm

protected java.awt.FontMetrics fm

backgroundcolor

protected java.awt.Color backgroundcolor

xmax

protected int xmax

ymax

protected int ymax

xmin

protected int xmin

ymin

protected int ymin

zmin

protected int zmin

zmax

protected int zmax

dx3d

protected int dx3d

dy3d

protected int dy3d

dz3d

protected int dz3d

dx

protected int dx

dy

protected int dy

vert

public java.awt.Scrollbar vert

horz

public java.awt.Scrollbar horz

selectColor

protected java.awt.Color selectColor

nodeColor

protected java.awt.Color nodeColor

textColor

protected java.awt.Color textColor

arrowColor

protected java.awt.Color arrowColor

projector

public VMProjector projector
Constructor Detail

VMPanel

public VMPanel(VMSpace i_space)
Method Detail

stringFromColor

public static java.lang.String stringFromColor(java.awt.Color i_color)

colorFromString

public static java.awt.Color colorFromString(java.lang.String i_color,
                                             java.awt.Color i_defaultcolor)

resetSize

public void resetSize()
scrollbars fixed since JDK 117 - Anton

run

public void run()

paintLink

public void paintLink(java.awt.Graphics g,
                      VMNode node)

paintLink

public void paintLink(java.awt.Graphics g,
                      VMNode node,
                      java.awt.FontMetrics fm)

paintLink

public void paintLink(java.awt.Graphics g,
                      VMNode node,
                      java.awt.FontMetrics fm,
                      java.lang.String linktype,
                      boolean inverseDirection)

paintNode

public void paintNode(java.awt.Graphics g,
                      VMNode n,
                      boolean i_shadow)

paintNode

public void paintNode(java.awt.Graphics g,
                      VMNode n,
                      java.awt.FontMetrics fm,
                      boolean i_shadow)

paintText

protected void paintText(java.lang.String text,
                         java.awt.Graphics g,
                         int x,
                         int y)
Added to fix Graphics.translate bug in JDK 117
Since:
19991208

drawArrow

protected void drawArrow(java.awt.Graphics g,
                         int x1,
                         int y1,
                         int x2,
                         int y2)

drawNode_old_and_not_used

protected void drawNode_old_and_not_used(java.awt.Graphics g,
                                         VMNode n,
                                         java.awt.FontMetrics fm,
                                         boolean i_shadow,
                                         java.awt.Color drawColor)
Need to be merged

drawArrow

protected void drawArrow(java.awt.Graphics g,
                         int x1,
                         int y1,
                         int x2,
                         int y2,
                         boolean bMiddleArrow,
                         java.awt.Color drawColor)
Need to be merged

resetColors

public void resetColors()

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Container

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Container

mouseDown

public boolean mouseDown(java.awt.Event evt,
                         int x,
                         int y)
Overrides:
mouseDown in class java.awt.Component

mouseDrag

public boolean mouseDrag(java.awt.Event evt,
                         int x,
                         int y)
Overrides:
mouseDrag in class java.awt.Component

mouseUp

public boolean mouseUp(java.awt.Event evt,
                       int x,
                       int y)
Overrides:
mouseUp in class java.awt.Component

start

public void start()

stop

public void stop()