|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.tooltip.ExpandedTip<JTableHeader> com.jidesoft.tooltip.TableHeaderExpandedTip
public class TableHeaderExpandedTip
TableHeaderExpandedTip
enables the ExpandedTip feature for JTableHeader
.
Field Summary |
---|
Fields inherited from class com.jidesoft.tooltip.ExpandedTip |
---|
_component, CLIENT_PROPERTY_EXPANDED_TIP |
Constructor Summary | |
---|---|
TableHeaderExpandedTip(JTableHeader tableHeader)
|
Method Summary | |
---|---|
protected Point |
createToolTipImage(int index,
boolean rightOrLeft)
|
Component |
getComponent(int index)
Gets the target component. |
Rectangle |
getRowBounds(int index)
Gets the bounds of the image that will be put on the tip. |
Rectangle |
getVisibleRect(int index)
Gets the visible rect of the component. |
protected void |
paintTipImage(Graphics2D g,
Component component,
Rectangle bounds,
int index)
Paints the tip image. |
int |
rowAtPoint(Point point)
Gets the row index or the node index on the location. |
protected boolean |
shouldDrawBorder()
|
void |
uninstall()
|
Methods inherited from class com.jidesoft.tooltip.ExpandedTip |
---|
createImage, fillBackground, getComponent, getExpandedTip, handleSelectionChange, handleSelectionChange, hideTip, setWindowShape, showTip, updateCurrentSelection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableHeaderExpandedTip(JTableHeader tableHeader)
Method Detail |
---|
public void uninstall()
uninstall
in class ExpandedTip<JTableHeader>
public Component getComponent(int index)
ExpandedTip
ExpandedTip.getRowBounds(int)
. What we will do is to take a capture of the image at the bounds on
the component and copy it to the tip component.
getComponent
in class ExpandedTip<JTableHeader>
index
- the index of the row or node.
public Rectangle getRowBounds(int index)
ExpandedTip
ExpandedTip.getComponent(int)
. The bounds should cover the row or the node. We will calculate it so that only the
invisible area is shown on the tip component.
getRowBounds
in class ExpandedTip<JTableHeader>
index
- the index of the row or node.
public Rectangle getVisibleRect(int index)
ExpandedTip
getVisibleRect
in class ExpandedTip<JTableHeader>
index
- the index of the row or node
protected Point createToolTipImage(int index, boolean rightOrLeft)
createToolTipImage
in class ExpandedTip<JTableHeader>
protected void paintTipImage(Graphics2D g, Component component, Rectangle bounds, int index)
ExpandedTip
paintTipImage
in class ExpandedTip<JTableHeader>
g
- the graphicscomponent
- the component where the sub-image is taken frombounds
- the bounds where the sub-image is atindex
- the index of the row or the nodepublic int rowAtPoint(Point point)
ExpandedTip
rowAtPoint
in class ExpandedTip<JTableHeader>
point
- the location.
protected boolean shouldDrawBorder()
shouldDrawBorder
in class ExpandedTip<JTableHeader>
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |