Style Intelligence v12.0

inetsoft.report
Class PreviewPane.StatusScrollPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by inetsoft.report.PreviewPane.StatusScrollPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Enclosing class:
PreviewPane

protected class PreviewPane.StatusScrollPane
extends Container

See Also:
Serialized Form

Nested Class Summary
 
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
static int H_FILL
          H_FILL disable horizontal scrolling.
static int H_SCROLL
          H_SCROLL is the default setting.
static int V_FILL
          V_FILL disable vertical scrolling.
static int V_SCROLL
          V_SCROLL is the default setting.
 
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
PreviewPane.StatusScrollPane()
           
 
Method Summary
 Component add(Component comp)
          Add a component to the decorator.
 void add(Component comp, Object o)
          Add a component to the decorator.
 Adjustable createHorizontalScrollBar()
          Create the horizontal scroll bar.
 Adjustable createVerticalScrollBar()
          Create the horizontal scroll bar.
 void doLayout()
          Layout the managed component.
 Component getComponent()
          Get the managed component.
 Adjustable getHAdjustable()
          Get the horizontal scrollbar.
 Dimension getPreferredSize()
          Return the preferred size.
 int getScrollOption()
          Get the scrolling option.
 Adjustable getVAdjustable()
          Get the vertical scrollbar.
 Container getViewport()
          Get the viewport container.
 Dimension getViewportSize()
          Get the scroller viewport size.
 boolean isForce()
          Check if the scrollbars are always present.
 void paint(Graphics g)
          Double buffering.
 void setBlockIncrement(int direction, int inc)
          Set the page increment value for the specified scrollbar.
 void setBounds(int x, int y, int w, int h)
          Use reshape as the initialization function.
 void setComponent(Component comp)
          Set the managed component of this pScrollPane.
 void setForce(boolean always)
          Set whether the scrollbars are always present.
 void setPreferredSize(int w, int h)
          Set the preferred size of this scroll control.
 void setScrollOption(int opt)
          Set the scrolling option.
 void setUnitIncrement(int direction, int inc)
          Set the line increment value for the specified scrollbar.
 void sync()
          Simulate an adjustment change.
 void update(Graphics g)
           
 void validate()
          This method can be called by the scrolled component to signal a need to recalculate the scrollbar values.
 
Methods inherited from class java.awt.Container
add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

H_SCROLL

public static final int H_SCROLL
H_SCROLL is the default setting. The managed component is sized to its preferred width, and scrollbar is attached according to the auto mode and need.

See Also:
Constant Field Values

H_FILL

public static final int H_FILL
H_FILL disable horizontal scrolling. The managed component is always sized to the same width as the Scroller.

See Also:
Constant Field Values

V_SCROLL

public static final int V_SCROLL
V_SCROLL is the default setting. The managed component is sized to its preferred height, and scrollbar is attached according to the auto mode and need.

See Also:
Constant Field Values

V_FILL

public static final int V_FILL
V_FILL disable vertical scrolling. The managed component is always sized to the same width as the Scroller.

See Also:
Constant Field Values
Constructor Detail

PreviewPane.StatusScrollPane

public PreviewPane.StatusScrollPane()
Method Detail

createHorizontalScrollBar

public Adjustable createHorizontalScrollBar()
Create the horizontal scroll bar.


setForce

public void setForce(boolean always)
Set whether the scrollbars are always present.


isForce

public boolean isForce()
Check if the scrollbars are always present.


sync

public void sync()
Simulate an adjustment change.


setPreferredSize

public void setPreferredSize(int w,
                             int h)
Set the preferred size of this scroll control.

Parameters:
w - preferred width;
h - preferred height;

add

public Component add(Component comp)
Add a component to the decorator. Same as setComponent();

Overrides:
add in class Container

add

public void add(Component comp,
                Object o)
Add a component to the decorator. Same as setComponent();

Overrides:
add in class Container

setComponent

public void setComponent(Component comp)
Set the managed component of this pScrollPane.

Parameters:
comp - managed component.

getViewport

public Container getViewport()
Get the viewport container.


getComponent

public Component getComponent()
Get the managed component.

Returns:
managed component.

validate

public void validate()
This method can be called by the scrolled component to signal a need to recalculate the scrollbar values.

Overrides:
validate in class Container

getScrollOption

public int getScrollOption()
Get the scrolling option. The returned value is a product of bitwise or of H_SCROLL, H_FILL, and V_SCROLL, V_FILL.

Returns:
scrolling option.

setScrollOption

public void setScrollOption(int opt)
Set the scrolling option. Pass in a bitwise or of the scrolling options: H_SCROLL, H_FILL, and V_SCROLL, V_FILL. If H_FILL is used, the width of the managed component is always same as the width of pScrollPane, and no horizontal scrolling is done. The same is true for vertical scrolling option.

Parameters:
opt - a bitwise or of the scrolling options.

setUnitIncrement

public void setUnitIncrement(int direction,
                             int inc)
Set the line increment value for the specified scrollbar. If the scrollbar does not exist, this call is ignored. This call is only valid if the managed component is not Scrollbar. Otherwise the increment value is always gotten from the Scrollbar component interface.

Parameters:
direction - specifies scrollbar, Scrollbar.HORIZONTAL or Scrollbar.VERTICAL.
inc - line increment.

setBlockIncrement

public void setBlockIncrement(int direction,
                              int inc)
Set the page increment value for the specified scrollbar. If the scrollbar does not exist, this call is ignored. This call is only valid if the managed component is not Scrollbar. Otherwise the increment value is always gotten from the Scrollbar component interface.

Parameters:
direction - specifies scrollbar, Scrollbar.HORIZONTAL or Scrollbar.VERTICAL.
inc - page increment.

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)
Use reshape as the initialization function.

Overrides:
setBounds in class Component
Parameters:
x - x coordinate.
y - y coordinate.
w - width.
h - height.

doLayout

public void doLayout()
Layout the managed component.

Overrides:
doLayout in class Container

getViewportSize

public Dimension getViewportSize()
Get the scroller viewport size.

Returns:
viewport size.

getVAdjustable

public Adjustable getVAdjustable()
Get the vertical scrollbar. Return null if no vertical scrollbar created.

Returns:
vertical scrollbar.

getHAdjustable

public Adjustable getHAdjustable()
Get the horizontal scrollbar. Return null if no horizontal scrollbar created.

Returns:
horizontal scrollbar.

getPreferredSize

public Dimension getPreferredSize()
Return the preferred size. If the size if passed in constructor, it will be returned. Otherwise the size will be the preferred size of its managed component.

Overrides:
getPreferredSize in class Container
Returns:
preferred size.

createVerticalScrollBar

public Adjustable createVerticalScrollBar()
Create the horizontal scroll bar.


paint

public void paint(Graphics g)
Double buffering.


update

public void update(Graphics g)

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.