GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SplitPaneUI
javax.swing.plaf.basic.BasicSplitPaneUI
public class BasicSplitPaneUI
extends SplitPaneUI
Nested Class Summary | |
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
Field Summary | |
protected static int |
|
protected static String |
|
protected int |
|
protected BasicSplitPaneDivider |
|
protected KeyStroke |
|
protected int |
|
protected KeyStroke |
|
protected boolean |
|
protected KeyStroke |
|
protected FocusListener |
|
protected KeyStroke |
|
protected ActionListener |
|
protected ActionListener |
|
protected ActionListener |
|
protected ActionListener |
|
protected ActionListener |
|
protected BasicSplitPaneUI.BasicHorizontalLayoutManager |
|
protected KeyStroke |
|
protected Component |
|
protected PropertyChangeListener |
|
protected KeyStroke |
|
protected JSplitPane |
|
protected KeyStroke |
|
Constructor Summary | |
|
Method Summary | |
BasicSplitPaneDivider |
|
protected Component |
|
protected FocusListener |
|
protected ActionListener |
|
protected ActionListener |
|
protected ActionListener |
|
protected ActionListener |
|
protected ActionListener |
|
protected PropertyChangeListener |
|
static ComponentUI |
|
protected void |
|
protected void |
|
void |
|
BasicSplitPaneDivider |
|
protected int |
|
int |
|
Insets |
|
int |
|
int |
|
Dimension |
|
int |
|
Dimension |
|
Component |
|
int |
|
Dimension |
|
JSplitPane |
|
protected void |
|
protected void |
|
protected void |
|
void |
|
boolean |
|
void |
|
protected void |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
protected void |
|
void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
void |
|
Methods inherited from class javax.swing.plaf.SplitPaneUI | |
finishedPaintingChildren , getDividerLocation , getMaximumDividerLocation , getMinimumDividerLocation , resetToPreferredSizes , setDividerLocation |
Methods inherited from class javax.swing.plaf.ComponentUI | |
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , installUI , paint , uninstallUI , update |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
The distance the divider is moved when moved by keyboard actions.
protected static final String NON_CONTINUOUS_DIVIDER
The constraints object used when adding the non-continuous divider to the JSplitPane.
- Field Value:
- "nonContinuousDivider"
protected int beginDragDividerLocation
The location of the divider when dragging began.
protected KeyStroke dividerResizeToggleKey
Deprecated. The divider resize toggle key.
protected ActionListener keyboardDownRightListener
Deprecated. The handler for down and right key presses.
protected ActionListener keyboardEndListener
Deprecated. The handler for end key presses.
protected ActionListener keyboardHomeListener
Deprecated. The handler for home key presses.
protected ActionListener keyboardResizeToggleListener
Deprecated. The handler for toggling resizes.
protected ActionListener keyboardUpLeftListener
Deprecated. The handler for up and left key presses.
protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
The JSplitPane's current layout manager.
protected Component nonContinuousLayoutDivider
The dark divider used when dragging in non-continuous layout mode.
protected PropertyChangeListener propertyChangeListener
The listener that listens for PropertyChangeEvents from the JSplitPane.
public BasicSplitPaneDivider createDefaultDivider()
This method creates the divider used normally with the JSplitPane.
- Returns:
- The default divider.
protected Component createDefaultNonContinuousLayoutDivider()
This method creates a nonContinuousLayoutDivider for use with the JSplitPane in nonContinousLayout mode. The default divider is a gray Canvas.
- Returns:
- The default nonContinousLayoutDivider.
protected FocusListener createFocusListener()
This method creates a new FocusListener.
- Returns:
- A new FocusListener.
protected ActionListener createKeyboardDownRightListener()
Deprecated. 1.3
This method creates a new ActionListener for down and right key presses.
- Returns:
- A new ActionListener for down and right keys.
protected ActionListener createKeyboardEndListener()
Deprecated. 1.3
This method creates a new ActionListener for end key presses.i
- Returns:
- A new ActionListener for end keys.
protected ActionListener createKeyboardHomeListener()
Deprecated.
This method creates a new ActionListener for home key presses.
- Returns:
- A new ActionListener for home keys.
protected ActionListener createKeyboardResizeToggleListener()
Deprecated. 1.3
This method creates a new ActionListener for resize toggle key events.
- Returns:
- A new ActionListener for resize toggle keys.
protected ActionListener createKeyboardUpLeftListener()
Deprecated. 1.3
This method creates a new ActionListener for up and left key presses.
- Returns:
- A new ActionListener for up and left keys.
protected PropertyChangeListener createPropertyChangeListener()
This method creates a new PropertyChangeListener.
- Returns:
- A new PropertyChangeListener.
public static ComponentUI createUI(JComponent x)
This method creates a new BasicSplitPaneUI for the given JComponent.
- Overrides:
- createUI in interface ComponentUI
- Parameters:
x
- The JComponent to create a UI for.
- Returns:
- A new BasicSplitPaneUI.
protected void dragDividerTo(int location)
This method is called whenever the divider is dragged. If the JSplitPane is in continuousLayout mode, the divider needs to be moved and the JSplitPane needs to be laid out.
- Parameters:
location
- The new location of the divider.
protected void finishDraggingTo(int location)
This method is called when the dragging is finished.
- Parameters:
location
- The location where the drag finished.
public void finishedPaintingChildren(JSplitPane jc, Graphics g)
This method is called after the children of the JSplitPane are painted.
- Overrides:
- finishedPaintingChildren in interface SplitPaneUI
- Parameters:
jc
- The JSplitPane.g
- The Graphics object to paint with.
public BasicSplitPaneDivider getDivider()
This method returns the BasicSplitPaneDivider that divides this JSplitPane.
- Returns:
- The divider for the JSplitPane.
protected int getDividerBorderSize()
Deprecated. 1.3
This method returns the width of one of the sides of the divider's border.
- Returns:
- The width of one side of the divider's border.
public int getDividerLocation(JSplitPane jc)
This method returns the location of the divider.
- Overrides:
- getDividerLocation in interface SplitPaneUI
- Parameters:
jc
- The JSplitPane to retrieve the location for.
- Returns:
- The location of the divider.
public Insets getInsets(JComponent jc)
This method returns the border insets of the current border.
- Parameters:
jc
- The JSplitPane.
- Returns:
- The current border insets.
public int getLastDragLocation()
This method returns the last location the divider was dragged to.
- Returns:
- The last location the divider was dragged to.
public int getMaximumDividerLocation(JSplitPane jc)
This method returns the largest value possible for the location of the divider.
- Overrides:
- getMaximumDividerLocation in interface SplitPaneUI
- Parameters:
jc
- The JSplitPane.
- Returns:
- The maximum divider location.
public Dimension getMaximumSize(JComponent jc)
This method returns the maximum size of the JSplitPane.
- Overrides:
- getMaximumSize in interface ComponentUI
- Parameters:
jc
- The JSplitPane.
- Returns:
- The maximum size of the JSplitPane.
public int getMinimumDividerLocation(JSplitPane jc)
This method returns the smallest value possible for the location of the divider.
- Overrides:
- getMinimumDividerLocation in interface SplitPaneUI
- Parameters:
jc
- The JSplitPane.
- Returns:
- The minimum divider location.
public Dimension getMinimumSize(JComponent jc)
This method returns the minimum size of the JSplitPane.
- Overrides:
- getMinimumSize in interface ComponentUI
- Parameters:
jc
- The JSplitPane.
- Returns:
- The minimum size of the JSplitPane.
public Component getNonContinuousLayoutDivider()
This method returns the nonContinuousLayoutDivider.
- Returns:
- The nonContinuousLayoutDivider.
public int getOrientation()
This method returns the orientation of the JSplitPane.
- Returns:
- The orientation of the JSplitPane.
public Dimension getPreferredSize(JComponent jc)
This method returns the preferred size of the JSplitPane.
- Overrides:
- getPreferredSize in interface ComponentUI
- Parameters:
jc
- The JSplitPane.
- Returns:
- The preferred size of the JSplitPane.
public JSplitPane getSplitPane()
This method returns the JSplitPane that this BasicSplitPaneUI draws.
- Returns:
- The JSplitPane.
protected void installDefaults()
This method installs the defaults given by the Look and Feel.
protected void installKeyboardActions()
Installs any keyboard actions. The list of keys that need to be bound are listed in Basic look and feel's defaults.
protected void installListeners()
This method installs the listeners needed for this UI to function.
public void installUI(JComponent c)
This method installs the BasicSplitPaneUI for the given JComponent.
- Overrides:
- installUI in interface ComponentUI
- Parameters:
c
- The JComponent to install the UI for.
public boolean isContinuousLayout()
This method returns true if the JSplitPane is using continuous layout.
- Returns:
- True if the JSplitPane is using continuous layout.
public void paint(Graphics g, JComponent jc)
This method is called to paint the JSplitPane.
- Overrides:
- paint in interface ComponentUI
- Parameters:
g
- The Graphics object to paint with.jc
- The JSplitPane to paint.
protected void resetLayoutManager()
This method resets the current layout manager. The type of layout manager is dependent on the current orientation.
public void resetToPreferredSizes(JSplitPane jc)
This method is called when JSplitPane's resetToPreferredSizes is called. It resets the sizes of all components in the JSplitPane.
- Overrides:
- resetToPreferredSizes in interface SplitPaneUI
- Parameters:
jc
- The JSplitPane to reset.
public void setContinuousLayout(boolean b)
This method sets the continuous layout property of the JSplitPane.
- Parameters:
b
- True if the JsplitPane is to use continuous layout.
public void setDividerLocation(JSplitPane jc, int location)
This method sets the location of the divider.
- Overrides:
- setDividerLocation in interface SplitPaneUI
- Parameters:
jc
- The JSplitPane to set the divider location in.location
- The new location of the divider.
public void setLastDragLocation(int l)
This method sets the last location the divider was dragged to.
- Parameters:
l
- The last location the divider was dragged to.
protected void setNonContinuousLayoutDivider(Component newDivider)
This method sets the component to use as the nonContinuousLayoutDivider.
- Parameters:
newDivider
- The component to use as the nonContinuousLayoutDivider.
protected void setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
This method sets the component to use as the nonContinuousLayoutDivider.
- Parameters:
newDivider
- The component to use as the nonContinuousLayoutDivider.rememberSizes
- FIXME: document.
public void setOrientation(int orientation)
This method sets the orientation of the JSplitPane.
- Parameters:
orientation
- The new orientation of the JSplitPane.
protected void startDragging()
This method is called when dragging starts. It resets lastDragLocation and dividerSize.
protected void uninstallDefaults()
This method uninstalls the defaults and nulls any objects created during install.
protected void uninstallKeyboardActions()
This method reverses the work done in installKeyboardActions.
protected void uninstallListeners()
This method uninstalls all listeners registered for the UI.
public void uninstallUI(JComponent c)
This method uninstalls the BasicSplitPaneUI for the given JComponent.
- Overrides:
- uninstallUI in interface ComponentUI
- Parameters:
c
- The JComponent to uninstall the UI for.
GNU Classpath (0.95) |