|
||||||||||
| 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
org.pentaho.reporting.engine.classic.core.modules.gui.base.internal.MinimalScrollPane
public class MinimalScrollPane
Rewires the scrollpane's preferred size property to the minimum-size property to avoid a non-linear behavior when used in the gridbag layout.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
MinimalScrollPane()
Creates an empty (no viewport view) JScrollPane where both horizontal and vertical scrollbars appear
when needed. |
|
MinimalScrollPane(Component view)
Creates a JScrollPane that displays the contents of the specified component, where both horizontal and
vertical scrollbars appear whenever the component's contents are larger than the view. |
|
MinimalScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
Creates a JScrollPane that displays the view component in a viewport whose view position can be
controlled with a pair of scrollbars. |
|
MinimalScrollPane(int vsbPolicy,
int hsbPolicy)
Creates an empty (no viewport view) JScrollPane with specified scrollbar policies. |
|
| Method Summary | |
|---|---|
Dimension |
getPreferredSize()
If the preferredSize has been set to a non-null value just returns it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MinimalScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
JScrollPane that displays the view component in a viewport whose view position can be
controlled with a pair of scrollbars. The scrollbar policies specify when the scrollbars are displayed, For
example, if vsbPolicy is VERTICAL_SCROLLBAR_AS_NEEDED then the vertical scrollbar only
appears if the view doesn't fit vertically. The available policy settings are listed at JScrollPane.setVerticalScrollBarPolicy(int) and JScrollPane.setHorizontalScrollBarPolicy(int).
view - the component to display in the scrollpanes viewportvsbPolicy - an integer that specifies the vertical scrollbar policyhsbPolicy - an integer that specifies the horizontal scrollbar policyJScrollPane.setViewportView(java.awt.Component)public MinimalScrollPane(Component view)
JScrollPane that displays the contents of the specified component, where both horizontal and
vertical scrollbars appear whenever the component's contents are larger than the view.
view - the component to display in the scrollpane's viewportJScrollPane.setViewportView(java.awt.Component)
public MinimalScrollPane(int vsbPolicy,
int hsbPolicy)
JScrollPane with specified scrollbar policies. The available
policy settings are listed at JScrollPane.setVerticalScrollBarPolicy(int) and JScrollPane.setHorizontalScrollBarPolicy(int).
vsbPolicy - an integer that specifies the vertical scrollbar policyhsbPolicy - an integer that specifies the horizontal scrollbar policyJScrollPane.setViewportView(java.awt.Component)public MinimalScrollPane()
JScrollPane where both horizontal and vertical scrollbars appear
when needed.
| Method Detail |
|---|
public Dimension getPreferredSize()
preferredSize has been set to a non-null value just returns it. If the UI
delegate's getPreferredSize method returns a non null value then return that; otherwise
defer to the component's layout manager.
getPreferredSize in class JComponentpreferredSize propertyJComponent.setPreferredSize(java.awt.Dimension),
ComponentUI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||