| graphical.MouseOverGridView
All known Subclasses: graphical.DragIGREView, components.RDPropertyGridView,
MouseOverGridView | public class MouseOverGridView extends IGridRowEditView implements Target(Code) | | MouseOverGridView extends IGridRowSelectView to implement:
popup help for any cell
"URL cell support, ie.e display as a "link"
|
Constructor Summary | |
public | MouseOverGridView(int x, int y, int w, int h) MouseOverGridView constructor, creates grid and initializes popup
system. |
Method Summary | |
public void | drawPopup() drawPopup - Get cell coordinates and check that the mouse is really over
the cell. | public void | hidePopup() hidePopup - Stop any timers. | public int | iconColumn() iconColumn - Return the current Icon column. | public boolean | mouseDown(MouseEvent mouseEvent) | public void | mouseMoved(MouseEvent mouseEvent) mouseMoved - Mouse move event handler, if mouse is over a new
cell the popup function is called, otherwise the event is just
passed on. | public Image | normalIcon() normalIcon - Return the normal Icon. | public void | onMouseOverCell(int cellRow, int cellColumn, int mouseRow, int mouseColumn) onMouseOverCell - Mouse is over a grid cell. | public void | onPressCell(int r, int c) onPressCell override - Invokes the browser with the contents of a
URL link cell. | public void | paintCellBackground(Graphics g, int r, int c, Rect rect) paintCellBackground override - Fixes drag refresh not painting selected row
background in the correct color. | public void | paintCellForeground(Graphics g, int r, int c, Rect rect) paintCellForeground override - Underlines URL link. | public void | performCommand(String command, Object arg) performCommand - Message handling for popup and popdown timers. | public int | popdownDelay() popdownDelay - Return the current popupdown delay, in milliseconds. | public boolean | popupAlways() popupAlways - Return the current state of the always popup flag. | public Color | popupBackgroundColor() popupBackgroundColor - Return the current bacjground color. | public int | popupDelay() popupDelay - Return the current popup delay, in milliseconds. | public Font | popupFont() popupFont - Return the current font. | public Color | popupTextColor() popupTextColor - Return the current text color. | public Image | selectedIcon() selectedIcon - Return the selected Icon. | public void | setDragRow(int r) setDragRow - Set the current Drag over row. | public void | setIconColumn(int c) setIconColumn - Set the current Icon column. | public void | setNormalIcon(Image icon) setNormalIcon - Set the normal (unselected) Icon. | public void | setPopdownDelay(int delay) setPopdownDelay - Set the current popdown delay value, in milliseconds. | public void | setPopupAlways(boolean flag) setPopupAlways - Set the current state of the always popup flag. | public void | setPopupBackgroundColor(Color color) setPopupBackgroundColor - Set the current background color. | public void | setPopupDelay(int delay) setPopupDelay - Set the popup delay value, in milliseconds. | public void | setPopupFont(Font font) setPopupFont - Set the current font. | public void | setPopupTextColor(Color color) setPopupTextColor - Set the current text color. | public void | setSelectedIcon(Image icon) setSelectedIcon - Set the selected Icon. | public void | setUrlColor(Color color) setUrlColor - Set the current URL color. | public void | setUrlColumn(int c) setUrlColumn - Set the current URL column. | public void | setUrlRow(int r) setUrlRow - Set the current URL row. | public void | setUrlRowColumn(int r, int c) setUrlRowColumn - Set the current URL row/column. | public Color | textColor(int r, int c) textColor override - Returns URL link color, if URL column. | public Color | urlColor() urlColor - Return the current URL Color. | public int | urlColumn() urlColumn - Return the current URL Column. | public int | urlRow() urlRow - Return the current URL Row. |
MouseOverGridView | public MouseOverGridView(int x, int y, int w, int h)(Code) | | MouseOverGridView constructor, creates grid and initializes popup
system.
|
drawPopup | public void drawPopup()(Code) | | drawPopup - Get cell coordinates and check that the mouse is really over
the cell. This is necessary as the grid locate functions return the last
cell when the mouse is off the bottom of the grid. Stop the popup timer,
if any. Get the contents of the cell and size it in the current font.
Check that size exceeds cell size or that always popup is on. Size popup
window and view for string and show the popup window. Start the popdown
timer, if any.
|
hidePopup | public void hidePopup()(Code) | | hidePopup - Stop any timers. Hide the window. Reset current cell and row
so that the mouse move handler detects a new cell.
|
iconColumn | public int iconColumn()(Code) | | iconColumn - Return the current Icon column.
|
mouseDown | public boolean mouseDown(MouseEvent mouseEvent)(Code) | | mouseDown - Mouse down event handler, destroy any popup window
|
mouseMoved | public void mouseMoved(MouseEvent mouseEvent)(Code) | | mouseMoved - Mouse move event handler, if mouse is over a new
cell the popup function is called, otherwise the event is just
passed on.
|
normalIcon | public Image normalIcon()(Code) | | normalIcon - Return the normal Icon.
|
onMouseOverCell | public void onMouseOverCell(int cellRow, int cellColumn, int mouseRow, int mouseColumn)(Code) | | onMouseOverCell - Mouse is over a grid cell. The current popup, if any,
is removed. If there is no popup delay, the popup is displayed. Otherwise
a timer is started.
|
onPressCell | public void onPressCell(int r, int c)(Code) | | onPressCell override - Invokes the browser with the contents of a
URL link cell.
|
paintCellBackground | public void paintCellBackground(Graphics g, int r, int c, Rect rect)(Code) | | paintCellBackground override - Fixes drag refresh not painting selected row
background in the correct color.
|
paintCellForeground | public void paintCellForeground(Graphics g, int r, int c, Rect rect)(Code) | | paintCellForeground override - Underlines URL link.
|
performCommand | public void performCommand(String command, Object arg)(Code) | | performCommand - Message handling for popup and popdown timers.
|
popdownDelay | public int popdownDelay()(Code) | | popdownDelay - Return the current popupdown delay, in milliseconds.
|
popupAlways | public boolean popupAlways()(Code) | | popupAlways - Return the current state of the always popup flag.
|
popupBackgroundColor | public Color popupBackgroundColor()(Code) | | popupBackgroundColor - Return the current bacjground color.
|
popupDelay | public int popupDelay()(Code) | | popupDelay - Return the current popup delay, in milliseconds.
|
popupFont | public Font popupFont()(Code) | | popupFont - Return the current font.
|
popupTextColor | public Color popupTextColor()(Code) | | popupTextColor - Return the current text color.
|
selectedIcon | public Image selectedIcon()(Code) | | selectedIcon - Return the selected Icon.
|
setDragRow | public void setDragRow(int r)(Code) | | setDragRow - Set the current Drag over row.
This is used for drag feedback.
|
setIconColumn | public void setIconColumn(int c)(Code) | | setIconColumn - Set the current Icon column.
|
setNormalIcon | public void setNormalIcon(Image icon)(Code) | | setNormalIcon - Set the normal (unselected) Icon.
|
setPopdownDelay | public void setPopdownDelay(int delay)(Code) | | setPopdownDelay - Set the current popdown delay value, in milliseconds.
|
setPopupAlways | public void setPopupAlways(boolean flag)(Code) | | setPopupAlways - Set the current state of the always popup flag.
|
setPopupBackgroundColor | public void setPopupBackgroundColor(Color color)(Code) | | setPopupBackgroundColor - Set the current background color.
|
setPopupDelay | public void setPopupDelay(int delay)(Code) | | setPopupDelay - Set the popup delay value, in milliseconds.
|
setPopupFont | public void setPopupFont(Font font)(Code) | | setPopupFont - Set the current font.
|
setPopupTextColor | public void setPopupTextColor(Color color)(Code) | | setPopupTextColor - Set the current text color.
|
setSelectedIcon | public void setSelectedIcon(Image icon)(Code) | | setSelectedIcon - Set the selected Icon.
|
setUrlColor | public void setUrlColor(Color color)(Code) | | setUrlColor - Set the current URL color.
|
setUrlColumn | public void setUrlColumn(int c)(Code) | | setUrlColumn - Set the current URL column.
|
setUrlRow | public void setUrlRow(int r)(Code) | | setUrlRow - Set the current URL row.
|
setUrlRowColumn | public void setUrlRowColumn(int r, int c)(Code) | | setUrlRowColumn - Set the current URL row/column.
|
textColor | public Color textColor(int r, int c)(Code) | | textColor override - Returns URL link color, if URL column.
|
urlColor | public Color urlColor()(Code) | | urlColor - Return the current URL Color.
|
urlColumn | public int urlColumn()(Code) | | urlColumn - Return the current URL Column.
|
urlRow | public int urlRow()(Code) | | urlRow - Return the current URL Row.
|
|
|