Package PamView.hidingpanel
Class HidingDialogPanel
java.lang.Object
PamView.hidingpanel.HidingDialogPanel
Something similar to the hiding panel, but doesn't get put into an existing
panel, but rather floats over the top. In effect, it's it's own frame, but
with no control bar so it can't be moved. Will be positioned relative to it's
trigger window, but will move up or down left or right to ensure it stays
within the screen coordinates.
- Author:
- Doug Gillespie
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The time to wait before hiding the dialog after the mouse has moved off of itstatic Insets
float
int
boolean
Should the dialog automatically disappear when the mouse moves off it ?boolean
? auto show the dialog as soon as the mouse moves over the showButtonboolean
void
setAutoHide
(boolean autoHide) Should the dialog automatically disappear when the mouse moves off it ?void
setAutoHideTime
(int autoHideTime) The time to wait before hiding the dialog after the mouse has moved off of itvoid
setAutoShow
(boolean autoShow) Set to auto show the dialog as soon as the mouse moves over the showButtonvoid
void
setHiddenToolTipText
(String tipText) Set tool tip text for the show buttonvoid
setModality
(boolean modality) void
setOpacity
(float opacity) void
setSizingComponent
(JComponent sizingComponent) void
setStartLocation
(int startLocation) void
showHidingDialog
(boolean show) show the hiding dialog
-
Field Details
-
outCount
public int outCount
-
-
Constructor Details
-
HidingDialogPanel
-
-
Method Details
-
getHidingDialogComponent
- Returns:
- the hidingDialogComponent
-
getSizingComponent
- Returns:
- the sizingComponent
-
setSizingComponent
- Parameters:
sizingComponent
- the sizingComponent to set
-
setHiddenToolTipText
Set tool tip text for the show button- Parameters:
tipText
- tool tip text for the show button.
-
getStartLocation
public int getStartLocation()- Returns:
- the startLocation
-
showHidingDialog
public void showHidingDialog(boolean show) show the hiding dialog -
getHidingDialog
-
setDialogPosition
public void setDialogPosition() -
setStartLocation
public void setStartLocation(int startLocation) - Parameters:
startLocation
- the startLocation to set
-
getShowButton
- Returns:
- the showButton
-
getAutoHideTime
public int getAutoHideTime()The time to wait before hiding the dialog after the mouse has moved off of it- Returns:
- the autoHideTime
-
setAutoHideTime
public void setAutoHideTime(int autoHideTime) The time to wait before hiding the dialog after the mouse has moved off of it- Parameters:
autoHideTime
- the autoHideTime to set in milliseconds
-
isAutoShow
public boolean isAutoShow()? auto show the dialog as soon as the mouse moves over the showButton- Returns:
- the autoShow
-
setAutoShow
public void setAutoShow(boolean autoShow) Set to auto show the dialog as soon as the mouse moves over the showButton- Parameters:
autoShow
- the autoShow to set
-
isAutoHide
public boolean isAutoHide()Should the dialog automatically disappear when the mouse moves off it ?- Returns:
- the autoHide
-
setAutoHide
public void setAutoHide(boolean autoHide) Should the dialog automatically disappear when the mouse moves off it ?- Parameters:
autoHide
- the autoHide to set
-
getOpacity
public float getOpacity()- Returns:
- the opacity
-
setOpacity
public void setOpacity(float opacity) - Parameters:
opacity
- the opacity to set
-
isModality
public boolean isModality()- Returns:
- the modality
-
setModality
public void setModality(boolean modality) - Parameters:
modality
- the modality to set
-
getDefaultButtonInsets
-