diagapplet.utils
Class FastListPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by diagapplet.utils.FastListPanel
All Implemented Interfaces:
FastListPanelInterface, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class FastListPanel
extends java.awt.Panel
implements java.awt.event.MouseListener, java.awt.ItemSelectable, FastListPanelInterface, java.awt.event.KeyListener

AWT Panel that was used as replacement for AWT List as it could be updated faster than the older AWT List implementation.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.awt.Font common_font
           
static int common_font_height
           
static int common_font_width
           
 int count
           
static boolean debug_on
           
static boolean display_on
           
 int lines_visible
           
 boolean list_changed
           
 FastListContainer myContainer
           
 boolean newOpenStructure
           
 java.util.Vector openStructures
           
 boolean repaint_needed
           
 java.util.Vector selected_indexes
           
 int start_line
           
 
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
FastListPanel(int rows, int cols, boolean set_multipleSelections, java.awt.Container p)
           
 
Method Summary
 void add(java.lang.String s)
           
 void add(java.lang.String s, int index)
           
 void add(java.lang.String s, int index, int var_number)
           
 void addActionListener(java.awt.event.ActionListener l)
           
 void addItemListener(java.awt.event.ItemListener l)
           
 void AddOpenStructure(java.lang.String struct)
           
 void clear()
           
 int countItems()
           
static void DebugPrint(java.lang.String s)
           
static void DebugPrint2(java.lang.String s)
           
 void deselect(int index)
           
static void ErrorPrint(java.lang.String s)
           
 java.lang.String getItem(int index)
           
 int getItemCount()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
 int getSelectedIndex()
           
 int[] getSelectedIndexes()
           
 java.lang.String getSelectedItem()
           
 java.lang.String[] getSelectedItems()
           
 java.lang.Object[] getSelectedObjects()
           
 int getSelectedVarNumber()
           
 int getVarNumber(int index)
           
 void handleKeyEvent(java.awt.event.KeyEvent e)
           
 boolean IsOpenStructure(java.lang.String struct)
           
 boolean isSelected(int index)
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void makeVisible(int index)
           
 void mouseClicked(java.awt.event.MouseEvent evt)
           
 void mouseEntered(java.awt.event.MouseEvent evt)
           
 void mouseExited(java.awt.event.MouseEvent evt)
           
 void mousePressed(java.awt.event.MouseEvent evt)
           
 void mouseReleased(java.awt.event.MouseEvent evt)
           
 void paint(java.awt.Graphics g)
           
 void removeActionListener(java.awt.event.ActionListener l)
           
 void removeAll()
           
 void removeItemListener(java.awt.event.ItemListener l)
           
 void RemoveOpenStructure(java.lang.String struct)
           
 void replaceItem(java.lang.String s, int index)
           
 void replaceItem(java.lang.String s, int index, int var_number)
           
 void select(int index)
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selected_indexes

public java.util.Vector selected_indexes

openStructures

public java.util.Vector openStructures

newOpenStructure

public boolean newOpenStructure

myContainer

public FastListContainer myContainer

lines_visible

public int lines_visible

start_line

public int start_line

count

public volatile int count

repaint_needed

public boolean repaint_needed

debug_on

public static boolean debug_on

display_on

public static boolean display_on

list_changed

public volatile boolean list_changed

common_font

public static java.awt.Font common_font

common_font_height

public static int common_font_height

common_font_width

public static int common_font_width
Constructor Detail

FastListPanel

public FastListPanel(int rows,
                     int cols,
                     boolean set_multipleSelections,
                     java.awt.Container p)
Method Detail

DebugPrint

public static void DebugPrint(java.lang.String s)

DebugPrint2

public static void DebugPrint2(java.lang.String s)

ErrorPrint

public static void ErrorPrint(java.lang.String s)

AddOpenStructure

public void AddOpenStructure(java.lang.String struct)

IsOpenStructure

public boolean IsOpenStructure(java.lang.String struct)

RemoveOpenStructure

public void RemoveOpenStructure(java.lang.String struct)

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.Component

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Container

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class java.awt.Container

add

public void add(java.lang.String s)
Specified by:
add in interface FastListPanelInterface

add

public void add(java.lang.String s,
                int index)
Specified by:
add in interface FastListPanelInterface

add

public void add(java.lang.String s,
                int index,
                int var_number)
Specified by:
add in interface FastListPanelInterface

replaceItem

public void replaceItem(java.lang.String s,
                        int index)
Specified by:
replaceItem in interface FastListPanelInterface

replaceItem

public void replaceItem(java.lang.String s,
                        int index,
                        int var_number)
Specified by:
replaceItem in interface FastListPanelInterface

removeAll

public void removeAll()
Specified by:
removeAll in interface FastListPanelInterface
Overrides:
removeAll in class java.awt.Container

clear

public void clear()
Specified by:
clear in interface FastListPanelInterface

select

public void select(int index)
Specified by:
select in interface FastListPanelInterface

deselect

public void deselect(int index)
Specified by:
deselect in interface FastListPanelInterface

makeVisible

public void makeVisible(int index)

isSelected

public boolean isSelected(int index)
Specified by:
isSelected in interface FastListPanelInterface

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in interface FastListPanelInterface

getSelectedItem

public java.lang.String getSelectedItem()
Specified by:
getSelectedItem in interface FastListPanelInterface

getSelectedVarNumber

public int getSelectedVarNumber()
Specified by:
getSelectedVarNumber in interface FastListPanelInterface

getSelectedIndexes

public int[] getSelectedIndexes()
Specified by:
getSelectedIndexes in interface FastListPanelInterface

getSelectedItems

public java.lang.String[] getSelectedItems()
Specified by:
getSelectedItems in interface FastListPanelInterface

getSelectedObjects

public java.lang.Object[] getSelectedObjects()
Specified by:
getSelectedObjects in interface FastListPanelInterface
Specified by:
getSelectedObjects in interface java.awt.ItemSelectable

getItem

public java.lang.String getItem(int index)
Specified by:
getItem in interface FastListPanelInterface

getVarNumber

public int getVarNumber(int index)
Specified by:
getVarNumber in interface FastListPanelInterface

countItems

public int countItems()
Specified by:
countItems in interface FastListPanelInterface

getItemCount

public int getItemCount()
Specified by:
getItemCount in interface FastListPanelInterface

paint

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

addItemListener

public void addItemListener(java.awt.event.ItemListener l)
Specified by:
addItemListener in interface java.awt.ItemSelectable

removeItemListener

public void removeItemListener(java.awt.event.ItemListener l)
Specified by:
removeItemListener in interface java.awt.ItemSelectable

addActionListener

public void addActionListener(java.awt.event.ActionListener l)

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

handleKeyEvent

public void handleKeyEvent(java.awt.event.KeyEvent e)