public class AutoHidePolicy
extends java.lang.Object
AutoHideButtonPanel
Modifier and Type | Class and Description |
---|---|
static class |
AutoHidePolicy.ExpandMode
A set of constants for expanding a button on rollover, or on click
|
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_EXPAND_COMPONENT_SIZE
A constant for initial expantion : based on preferred size of component
|
static int |
INITIAL_EXPAND_CUSTOM_SIZE
A constant for initial expantion : based on custom widths and heights
|
static java.lang.String |
PROPERTY_DEFAULT_GAP
a constant designing the bound property DEFAULT_GAP
|
static java.lang.String |
PROPERTY_DEFAULT_HIDE_BORDER
a constant designing the bound property DEFAULT_HIDE_BORDER
|
static java.lang.String |
PROPERTY_EXPAND_MODE
a constant designing the bound property EXPAND_MODE (enum type)
|
static java.lang.String |
PROPERTY_EXPANSION_DURATION
a constant designing the bound property EXPANSION_DURATION
|
static java.lang.String |
PROPERTY_ROLLOVER_TRIGGER_DELAY
a constant designing the bound property ROLLOVER_TRIGGER_DELAY
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Hook for property change notification
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Hook for property change notification
|
int |
getDefaultGap()
Returns the default gap between border components
|
DockingConstants.Hide |
getDefaultHideBorder()
Returns the default hide border (used when not specified in a DockKey)
|
AutoHidePolicy.ExpandMode |
getExpandMode()
Returns the expand mode in use.
|
int |
getExpansionDuration()
Returns the expansion duration (in millis)
|
int |
getInitialExpansionHeight() |
int |
getInitialExpansionModel()
returns the expansion model (computation size of first expansion)
|
int |
getInitialExpansionWidth() |
static AutoHidePolicy |
getPolicy()
Returns the singleton instance of this class
|
int |
getRolloverTriggerDelay()
Returns the rollover trigger delay (in millis)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change notification
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Remove a property change notification
|
void |
setDefaultGap(int gap)
Updates the gap (in pixels) between auto-hide buttons
|
void |
setDefaultHideBorder(DockingConstants.Hide defaultHideBorder)
Updates the default hide border.
|
void |
setExpandMode(AutoHidePolicy.ExpandMode expandMode)
Updates the expand mode.
|
void |
setExpansionDuration(int millis)
Updates the expansion duration (time in millis)
|
void |
setInitialExpansionHeight(int initialExpansionHeight)
sets the first expansion height (only used with INITIAL_EXPAND_CUSTOM_SIZE model)
|
void |
setInitialExpansionModel(int model) |
void |
setInitialExpansionWidth(int initialExpansionWidth)
sets the first expansion width (only used with INITIAL_EXPAND_CUSTOM_SIZE model)
|
void |
setRolloverTriggerDelay(int delay)
Updates the rollover trigger delay
|
public static final int INITIAL_EXPAND_COMPONENT_SIZE
public static final int INITIAL_EXPAND_CUSTOM_SIZE
public static final java.lang.String PROPERTY_DEFAULT_HIDE_BORDER
public static final java.lang.String PROPERTY_DEFAULT_GAP
public static final java.lang.String PROPERTY_EXPAND_MODE
public static final java.lang.String PROPERTY_ROLLOVER_TRIGGER_DELAY
public static final java.lang.String PROPERTY_EXPANSION_DURATION
public void setDefaultHideBorder(DockingConstants.Hide defaultHideBorder)
Default is AutoHideExpandPanel.LEFT;
defaultHideBorder
- values taken from DockingConstants.HIDE_TOP, HIDE_LEFT, HIDE_BOTTOM, HIDE_RIGHTpublic DockingConstants.Hide getDefaultHideBorder()
public int getDefaultGap()
public void setDefaultGap(int gap)
public static AutoHidePolicy getPolicy()
public AutoHidePolicy.ExpandMode getExpandMode()
public void setExpandMode(AutoHidePolicy.ExpandMode expandMode)
expandMode
- legal values are EXPAND_ON_ROLLOVER or EXPAND_ON_CLICKpublic int getRolloverTriggerDelay()
public void setRolloverTriggerDelay(int delay)
delay
- delay in millis before expanding a Dockablepublic int getExpansionDuration()
public void setExpansionDuration(int millis)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public int getInitialExpansionModel()
public void setInitialExpansionModel(int model)
model
- the model to set, values are INITIAL_EXPAND_CUSTOM_SIZE
and INITIAL_EXPAND_COMPONENT_SIZEpublic int getInitialExpansionWidth()
public void setInitialExpansionWidth(int initialExpansionWidth)
initialExpansionWidth
- the with to set for first expansionsetInitialExpansionModel(int)
public int getInitialExpansionHeight()
public void setInitialExpansionHeight(int initialExpansionHeight)
initialExpansionHeight
- the initialExpansionHeight to setsetInitialExpansionModel(int)
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.