|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.event.MouseAdapter | +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.CAPETab
Creates a tab for the tabbed pane with an 'X' (close icon) to close the tab. Each tab can be associated with a query object and pane type:
STATS
: the tabbed pane to hold statistic table(s)
QUERY
: the tabbed pane to hold graphs, or query plans
Constructor Summary | |
CAPETab()
Constructor to make a new tab. |
|
CAPETab(java.lang.Object queryObject)
Constructor to make a new tab associated with the given queryObject . |
|
CAPETab(java.lang.Object queryObject,
java.lang.String paneType)
Constructor to make a new tab associated with the given queryObject and paneType . |
|
CAPETab(java.lang.String paneType)
Constructor to make a new tab associated with the given paneType . |
Method Summary | |
java.awt.Rectangle |
getBounds()
Returns the bounds of the 'X' on the tab. |
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's width. |
java.lang.String |
getPaneType()
Returns the pane type. |
XATQueryObject |
getXATQueryObject()
Returns the XATQueryObject associated with this tab. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paints the 'X' icon on the tab. |
Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CAPETab()
public CAPETab(java.lang.Object queryObject)
queryObject
.
queryObject
- the query object associated with this tabpublic CAPETab(java.lang.String paneType)
paneType
.
paneType
- the type of tabbed pane this tab belongs topublic CAPETab(java.lang.Object queryObject, java.lang.String paneType)
queryObject
and paneType
.
queryObject
- the query object to associate with this tabpaneType
- the type of tabbed pane this tab belongs toMethod Detail |
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public java.awt.Rectangle getBounds()
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public java.lang.String getPaneType()
public XATQueryObject getXATQueryObject()
XATQueryObject
associated with this tab.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |