Top Fields Constructors Methods
org.hsqldb.util

pack-priv Class Tree

extends Panel
Class Inheritance
Imports
java.util.Vector, java.awt.Color, .Dimension, .Event, .Font, .FontMetrics, .Graphics, .Image, .Panel, .Scrollbar, .SystemColor, .Toolkit

Author
Thomas Mueller (Hypersonic SQL Group)
Since
Hypersonic SQL
Version
1.7.0

Field Summary

Modifier and TypeField and Description
private Dimension
private static Font
private static FontMetrics
private Graphics
private int
private int
private Image
private static int
private int
private int
private static int
private int
private int
private int
private int
private int
private Scrollbar
private Scrollbar
private Vector<E>

Constructor Summary

AccessConstructor and Description
pack-priv
Tree()

Constructor declaration

Method Summary

Modifier and TypeMethod and Description
public void
addRow(String key, String value, String state, int color)

public void
addRow(String key, String value)

pack-priv void
private static int
public Dimension
getMinimumSize()

Overrides java.awt.Container.getMinimumSize.

Returns the minimum size of this container.

public Dimension
getPreferredSize()

Overrides java.awt.Container.getPreferredSize.

Returns the preferred size of this container.

public boolean
handleEvent(Event e)

Overrides java.awt.Component.handleEvent.

References Deprecated Event is deprecated or references (maybe indirectly) at least one deprecated element.

public Dimension
minimumSize()

Overrides java.awt.Container.minimumSize.

Returns the minimum size of this component.

public boolean
mouseDown(Event e, int x, int y)

Overrides java.awt.Component.mouseDown.

References Deprecated Event is deprecated or references (maybe indirectly) at least one deprecated element.

public void
paint(Graphics g)

Overrides java.awt.Container.paint.

Paints the container.

public Dimension
preferredSize()

Overrides java.awt.Container.preferredSize.

Returns the component's preferred size.

public void
removeAll()

Overrides java.awt.Container.removeAll.

Removes all the components from this container.

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

Overrides java.awt.Component.setBounds.

Moves and resizes this component.

public void
setMinimumSize(Dimension d)

Overrides java.awt.Component.setMinimumSize.

Sets the minimum size of this component to a constant value.

public void
public void
update(Graphics g)

Overrides java.awt.Container.update.

Updates the container.

Inherited from java.awt.Panel:
addNotifygetAccessibleContext

Field Detail

dMinimumback to summary
private Dimension dMinimum
fFontback to summary
private static Font fFont
fMetricsback to summary
private static FontMetrics fMetrics
gImageback to summary
private Graphics gImage
iFirstRowback to summary
private int iFirstRow
iHeightback to summary
private int iHeight
iImageback to summary
private Image iImage
iIndentWidthback to summary
private static int iIndentWidth
iMaxTextLengthback to summary
private int iMaxTextLength
iRowCountback to summary
private int iRowCount
iRowHeightback to summary
private static int iRowHeight
iSbHeightback to summary
private int iSbHeight
iSbWidthback to summary
private int iSbWidth
iWidthback to summary
private int iWidth
iXback to summary
private int iX
iYback to summary
private int iY
sbHorizback to summary
private Scrollbar sbHoriz
sbVertback to summary
private Scrollbar sbVert
vDataback to summary
private Vector<E> vData

Constructor Detail

Treeback to summary
pack-priv Tree()

Constructor declaration

Method Detail

addRowback to summary
public void addRow(String key, String value, String state, int color)
addRowback to summary
public void addRow(String key, String value)
adjustScrollback to summary
pack-priv void adjustScroll()
getMaxHeightback to summary
private static int getMaxHeight(FontMetrics f)
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides java.awt.Container.getMinimumSize.

Doc from java.awt.Container.getMinimumSize.

Returns the minimum size of this container. If the minimum size has not been set explicitly by Component#setMinimumSize(Dimension) and this Container has a non-null LayoutManager, then LayoutManager#minimumLayoutSize(Container) is used to calculate the minimum size.

Note

some implementations may cache the value returned from the LayoutManager. Implementations that cache need not invoke minimumLayoutSize on the LayoutManager every time this method is invoked, rather the LayoutManager will only be queried after the Container becomes invalid.

getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides java.awt.Container.getPreferredSize.

Doc from java.awt.Container.getPreferredSize.

Returns the preferred size of this container. If the preferred size has not been set explicitly by Component#setPreferredSize(Dimension) and this Container has a non-null LayoutManager, then LayoutManager#preferredLayoutSize(Container) is used to calculate the preferred size.

Note

some implementations may cache the value returned from the LayoutManager. Implementations that cache need not invoke preferredLayoutSize on the LayoutManager every time this method is invoked, rather the LayoutManager will only be queried after the Container becomes invalid.

handleEventback to summary
public boolean handleEvent(Event e)

Overrides java.awt.Component.handleEvent.

References Deprecated

Event is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

minimumSizeback to summary
public Dimension minimumSize()

Overrides java.awt.Container.minimumSize.

Doc from java.awt.Component.minimumSize.

Returns the minimum size of this component.

mouseDownback to summary
public boolean mouseDown(Event e, int x, int y)

Overrides java.awt.Component.mouseDown.

References Deprecated

Event is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

paintback to summary
public void paint(Graphics g)

Overrides java.awt.Container.paint.

Doc from java.awt.Container.paint.

Paints the container. This forwards the paint to any lightweight components that are children of this container. If this method is reimplemented, super.paint(g) should be called so that lightweight components are properly rendered. If a child component is entirely clipped by the current clipping setting in g, paint() will not be forwarded to that child.

preferredSizeback to summary
public Dimension preferredSize()

Overrides java.awt.Container.preferredSize.

Doc from java.awt.Component.preferredSize.

Returns the component's preferred size.

removeAllback to summary
public void removeAll()

Overrides java.awt.Container.removeAll.

Doc from java.awt.Container.removeAll.

Removes all the components from this container. This method also notifies the layout manager to remove the components from this container's layout via the removeLayoutComponent method.

This method changes layout-related information, and therefore, invalidates the component hierarchy. If the container has already been displayed, the hierarchy must be validated thereafter in order to reflect the changes.

setBoundsback to summary
public void setBounds(int x, int y, int w, int h)

Overrides java.awt.Component.setBounds.

Doc from java.awt.Component.setBounds.

Moves and resizes this component. The new location of the top-left corner is specified by x and y, and the new size is specified by width and height.

This method changes layout-related information, and therefore, invalidates the component hierarchy.

setMinimumSizeback to summary
public void setMinimumSize(Dimension d)

Overrides java.awt.Component.setMinimumSize.

Doc from java.awt.Component.setMinimumSize.

Sets the minimum size of this component to a constant value. Subsequent calls to getMinimumSize will always return this value. Setting the minimum size to null restores the default behavior.

updateback to summary
public void update()
updateback to summary
public void update(Graphics g)

Overrides java.awt.Container.update.

Doc from java.awt.Container.update.

Updates the container. This forwards the update to any lightweight components that are children of this container. If this method is reimplemented, super.update(g) should be called so that lightweight components are properly rendered. If a child component is entirely clipped by the current clipping setting in g, update() will not be forwarded to that child.