|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ugent.caagt.swirl.tables.TableColumnIcon
public class TableColumnIcon
Simple table column decoration that displays a fixed icon and does not interpret mouse events.
| Constructor Summary | |
|---|---|
TableColumnIcon(javax.swing.Icon icon)
Create a decoration for the given icon. |
|
| Method Summary | |
|---|---|
TableColumnIcon |
copy()
Makes a copy of this object. |
int |
getDecorationHeight()
Return the height of this decoration. |
int |
getDecorationWidth()
Return the width of this decoration. |
void |
mouseEntered()
Signals that the mouse pointer entered the bounds of this decoration. |
void |
mouseExited()
Signals that the mouse pointer exited the bounds of this decoration. |
void |
mousePressed()
Signals that the mouse button was pressed inside the bounds of this decoration. |
void |
mouseReleased()
Signals that the mouse button was released after being pressed inside the bounds of this decoration. |
void |
paintDecoration(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paint this decoration. |
void |
setColumnIndex(int columnIndex)
Called to indicate that this decoration has been associated with the given table column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableColumnIcon(javax.swing.Icon icon)
| Method Detail |
|---|
public TableColumnIcon copy()
TableColumnDecoration(MyDecoration)super.clone() where MyDecoration
is a class that implements this interface, surrounded by a try-catch
clause which caches the CloneNotSupportedException.
copy in interface TableColumnDecorationpublic int getDecorationHeight()
getDecorationHeight in interface TableColumnDecorationpublic int getDecorationWidth()
getDecorationWidth in interface TableColumnDecoration
public void paintDecoration(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintDecoration in interface TableColumnDecorationpublic void mouseReleased()
TableColumnDecoration
mouseReleased in interface TableColumnDecorationpublic void mousePressed()
TableColumnDecoration
mousePressed in interface TableColumnDecorationpublic void mouseExited()
TableColumnDecoration
mouseExited in interface TableColumnDecorationpublic void mouseEntered()
TableColumnDecoration
mouseEntered in interface TableColumnDecorationpublic void setColumnIndex(int columnIndex)
TableColumnDecoration
setColumnIndex in interface TableColumnDecorationcolumnIndex - Column index in the data model.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||