Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb.util
Class Grid  view Grid download Grid.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byorg.hsqldb.util.Grid
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

class Grid
extends java.awt.Panel

Version:
1.7.0

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  boolean bDrag
           
private  java.awt.Dimension dMinimum
           
private  java.awt.Font fFont
           
private  java.awt.FontMetrics fMetrics
           
private  java.awt.Graphics gImage
           
private  int iColCount
           
private  int iColDrag
           
private  int[] iColWidth
           
private  int iFirstRow
           
private  int iGridHeight
           
private  int iGridWidth
           
private  int iHeight
           
private  java.awt.Image iImage
           
private  int iRowCount
           
private  int iRowHeight
           
private  int iSbHeight
           
private  int iSbWidth
           
private  int iWidth
           
private  int iX
           
private  int iXDrag
           
private  int iY
           
private  java.awt.Scrollbar sbHoriz
           
private  java.awt.Scrollbar sbVert
           
private  java.lang.String[] sColHead
           
private  java.util.Vector vData
           
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
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
Grid()
          Constructor declaration
 
Method Summary
 void addRow(java.lang.String[] data)
          Method declaration
(package private)  void adjustScroll()
          Method declaration
private  void calcAutoWidth(int i)
          Method declaration
private  java.lang.String get(int x, int y)
          Method declaration
(package private)  java.util.Vector getData()
          Method declaration
private  java.lang.String getDisplay(int x, int y)
          Method declaration
(package private)  java.lang.String[] getHead()
          Method declaration
private static int getMaxHeight(java.awt.FontMetrics f)
          Method declaration
 java.awt.Dimension getMinimumSize()
          Method declaration
 java.awt.Dimension getPreferredSize()
          Method declaration
 boolean handleEvent(java.awt.Event e)
          Method declaration
 java.awt.Dimension minimumSize()
          Method declaration
 boolean mouseDrag(java.awt.Event e, int x, int y)
          Method declaration
 boolean mouseExit(java.awt.Event e, int x, int y)
          Method declaration
 boolean mouseMove(java.awt.Event e, int x, int y)
          Method declaration
 void paint(java.awt.Graphics g)
          Method declaration
 java.awt.Dimension preferredSize()
          Method declaration
 void setBounds(int x, int y, int w, int h)
          Method declaration
 void setHead(java.lang.String[] head)
          Method declaration
 void setMinimumSize(java.awt.Dimension d)
          Method declaration
 void update()
          Method declaration
 void update(java.awt.Graphics g)
          Method declaration
 
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, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, 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, 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, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseEnter, 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, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dMinimum

private java.awt.Dimension dMinimum

fFont

private java.awt.Font fFont

fMetrics

private java.awt.FontMetrics fMetrics

gImage

private java.awt.Graphics gImage

iImage

private java.awt.Image iImage

iWidth

private int iWidth

iHeight

private int iHeight

iRowHeight

private int iRowHeight

iFirstRow

private int iFirstRow

iGridWidth

private int iGridWidth

iGridHeight

private int iGridHeight

iX

private int iX

iY

private int iY

sColHead

private java.lang.String[] sColHead

vData

private java.util.Vector vData

iColWidth

private int[] iColWidth

iColCount

private int iColCount

iRowCount

private int iRowCount

sbHoriz

private java.awt.Scrollbar sbHoriz

sbVert

private java.awt.Scrollbar sbVert

iSbWidth

private int iSbWidth

iSbHeight

private int iSbHeight

bDrag

private boolean bDrag

iXDrag

private int iXDrag

iColDrag

private int iColDrag
Constructor Detail

Grid

public Grid()
Constructor declaration

Method Detail

getHead

java.lang.String[] getHead()
Method declaration


getData

java.util.Vector getData()
Method declaration


setMinimumSize

public void setMinimumSize(java.awt.Dimension d)
Method declaration


setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)
Method declaration


setHead

public void setHead(java.lang.String[] head)
Method declaration


addRow

public void addRow(java.lang.String[] data)
Method declaration


update

public void update()
Method declaration


adjustScroll

void adjustScroll()
Method declaration


handleEvent

public boolean handleEvent(java.awt.Event e)
Method declaration


paint

public void paint(java.awt.Graphics g)
Method declaration


update

public void update(java.awt.Graphics g)
Method declaration


mouseMove

public boolean mouseMove(java.awt.Event e,
                         int x,
                         int y)
Method declaration


mouseDrag

public boolean mouseDrag(java.awt.Event e,
                         int x,
                         int y)
Method declaration


mouseExit

public boolean mouseExit(java.awt.Event e,
                         int x,
                         int y)
Method declaration


preferredSize

public java.awt.Dimension preferredSize()
Method declaration


getPreferredSize

public java.awt.Dimension getPreferredSize()
Method declaration


getMinimumSize

public java.awt.Dimension getMinimumSize()
Method declaration


minimumSize

public java.awt.Dimension minimumSize()
Method declaration


calcAutoWidth

private void calcAutoWidth(int i)
Method declaration


getDisplay

private java.lang.String getDisplay(int x,
                                    int y)
Method declaration


get

private java.lang.String get(int x,
                             int y)
Method declaration


getMaxHeight

private static int getMaxHeight(java.awt.FontMetrics f)
Method declaration