|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.higrid.GridArea
The GridArea
is the component onto which the HiGrid
nodes are rendered. The GridArea, along with the vertical and
horizontal scrollbars exist within the HiGrid container.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected com.klg.jclass.higrid.FocusModel |
focusManager
|
protected boolean |
isDoubleBuffer
|
protected static int |
MINIMUM_HEIGHT
|
protected static int |
MINIMUM_WIDTH
|
protected com.klg.jclass.higrid.HiGridTip |
toolTip
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
GridArea(com.klg.jclass.higrid.HiGrid grid)
Default Constructor |
Method Summary | |
JToolTip |
createToolTip()
Retrieves the HiGridTip. |
void |
dispose()
Disposes of any native resources. |
protected boolean |
doubleBufferSizeChanged()
Checks whether the double-buffer needs to be reset/recreated, based on HiGrid's RowTree. |
void |
focusGained(FocusEvent event)
|
void |
focusLost(FocusEvent event)
|
protected Object |
getAWTLock()
Returns the object used to lock layout and repaint. |
protected Graphics |
getDoubleBufferGraphics()
Creates a double-buffer graphics for drawing into the doubleBufferImage |
protected Image |
getDoubleBufferImage()
Returns the double-buffer image previously created in a call to getDoubleBufferGraphics. |
com.klg.jclass.higrid.FocusModel |
getFocusManager()
Returns the current FocusManager. |
Dimension |
getPreferredSize()
Gets the preferred size of this component. |
Point |
getToolTipLocation(MouseEvent event)
Computes the point at which the HiGridTip must be placed for correct alignment. |
void |
paintComponent(Graphics gc)
Override for Swing painting model. |
protected void |
paintGrid(Graphics gc)
Call back to HiGrid to render the grid. |
protected void |
recreateToolTip()
Allows lazy creation of tooltips and permits cut and paste serialization. |
protected void |
refresh()
Repaints the entire grid |
protected void |
refresh(int pixels)
Repaints the grid based on the passed number of pixels. |
protected void |
refresh(int x,
int y,
int width,
int height)
Repaints the grid based on the passed rectangle coordinates |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this component. |
protected Image |
setDoubleBufferImage(Image image)
Sets the image to be used as the double-buffer image. |
void |
setFocusManager(com.klg.jclass.higrid.FocusModel focusManager)
Sets a new FocusManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final int MINIMUM_WIDTH
protected static final int MINIMUM_HEIGHT
protected transient com.klg.jclass.higrid.HiGridTip toolTip
protected boolean isDoubleBuffer
protected com.klg.jclass.higrid.FocusModel focusManager
Constructor Detail |
public GridArea(com.klg.jclass.higrid.HiGrid grid)
Method Detail |
public Point getToolTipLocation(MouseEvent event)
getToolTipLocation
in class JComponent
event
- MouseEvent that stores current mouse position
public JToolTip createToolTip()
createToolTip
in class JComponent
protected void recreateToolTip()
protected Object getAWTLock()
protected Image getDoubleBufferImage()
getDoubleBufferGraphics()
protected Image setDoubleBufferImage(Image image)
image
- new double-buffer to useprotected boolean doubleBufferSizeChanged()
protected Graphics getDoubleBufferGraphics()
getDoubleBufferImage()
protected void paintGrid(Graphics gc)
gc
- Graphics Context to use for rendering.protected void refresh()
protected void refresh(int x, int y, int width, int height)
protected void refresh(int pixels)
pixels
- Based on its sign, will copy the given number of
pixels up or down within the double-buffer and expose the remainder
to be repainted as usual.public void paintComponent(Graphics gc)
paintComponent
in class JComponent
gc
- Graphics Context to paint into.public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public void setBounds(int x, int y, int width, int height)
x
and y
, and the
new size is specified by width
and height
.
setBounds
in class Component
x
- The new x-coordinate of this component.y
- The new y-coordinate of this component.width
- The new width
of this component.height
- The new height
of this component.public void dispose()
public com.klg.jclass.higrid.FocusModel getFocusManager()
setFocusManager(com.klg.jclass.higrid.FocusModel)
public void setFocusManager(com.klg.jclass.higrid.FocusModel focusManager)
focusManager
- The new focus manager. Null values are ignored.public void focusGained(FocusEvent event)
focusGained
in interface FocusListener
public void focusLost(FocusEvent event)
focusLost
in interface FocusListener
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |