|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
edu.umd.cs.piccolox.swing.PScrollPane
public class PScrollPane
A simple extension to a standard scroll pane that uses the jazz version of the viewport by default. Also uses the jazz version of ScrollPaneLayout
| Nested Class Summary | |
|---|---|
protected static class |
PScrollPane.PNullAction
An action to do nothing - put into an action map to keep it from looking to its parent. |
protected static class |
PScrollPane.PScrollAction
Action to scroll left/right/up/down. |
protected static class |
PScrollPane.PScrollEndAction
Action to scroll to last visible location. |
| Nested classes/interfaces inherited from class javax.swing.JScrollPane |
|---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected boolean |
disableKeyActions
Controls whether key actions are disabled on this component. |
protected PScrollPane.PNullAction |
nullAction
A reusable null action. |
| Fields inherited from class javax.swing.JScrollPane |
|---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PScrollPane()
Constructs a scroll pane not attached to any component. |
|
PScrollPane(Component view)
Constructs a scroll pane for the provided component. |
|
PScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
Constructs a scollpane for the provided component with the specified scrollbar policies. |
|
PScrollPane(int vsbPolicy,
int hsbPolicy)
Constructs a scroll pane not attached to any component with the specified scroll bar policies. |
|
| Method Summary | |
|---|---|
protected JViewport |
createViewport()
Overridden to create the Piccolo2D viewport. |
protected void |
disableKeyActions()
Disables key actions on this PScrollPane. |
protected void |
installCustomKeyActions()
Install custom key actions (in place of the Swing defaults) to correctly scroll the view. |
void |
setHorizontalScrollBar(JScrollBar newHorizontalScrollBar)
Intercepts the horizontal scroll bar setter to ensure that the adjustment listener is installed appropriately. |
void |
setKeyActionsDisabled(boolean disable)
Disable or enable key actions on this PScrollPane. |
void |
setUI(ScrollPaneUI ui)
Sets the UI. |
void |
setVerticalScrollBar(JScrollBar newVerticalScrollBar)
Intercepts the vertical scroll bar setter to ensure that the adjustment listener is installed appropriately. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PScrollPane.PNullAction nullAction
protected boolean disableKeyActions
| Constructor Detail |
|---|
public PScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
view - component being viewed through the scrollpanevsbPolicy - vertical scroll bar policyhsbPolicy - horizontal scroll bar policypublic PScrollPane(Component view)
view - component being viewed through the scroll pane
public PScrollPane(int vsbPolicy,
int hsbPolicy)
vsbPolicy - vertical scroll bar policyhsbPolicy - horizontal scroll bar policypublic PScrollPane()
| Method Detail |
|---|
public void setVerticalScrollBar(JScrollBar newVerticalScrollBar)
setVerticalScrollBar in class JScrollPanenewVerticalScrollBar - the new vertical scroll bar to use with this PScrollPanepublic void setHorizontalScrollBar(JScrollBar newHorizontalScrollBar)
setHorizontalScrollBar in class JScrollPanenewHorizontalScrollBar - the new horizontal scroll bar to use with this PScrollPanepublic void setKeyActionsDisabled(boolean disable)
disable - true disables key actions, false enables key actionspublic void setUI(ScrollPaneUI ui)
setUI in class JScrollPaneui - the scroll pane UI to associate with this PScollPaneprotected void installCustomKeyActions()
protected void disableKeyActions()
protected JViewport createViewport()
createViewport in class JScrollPane
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||