java.awt
Class ScrollPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.ScrollPane
All Implemented Interfaces:
ImageObserver

public class ScrollPane
extends Container


Constructor Summary
ScrollPane()
           
 
Method Summary
 void addImpl(Component c, java.lang.Object constraints, int index)
          This add method encapsulates the real implementation and is called by all other add methods.
 void doLayout()
          Forces new layout of this container.
 Component findComponentAt(int px, int py)
          returns the component at the given position.
 Dimension getMinimumSize()
          Returns a minimum size of 50x50 pixel (1/2 AWT def.
 Point getScrollPosition()
           
 Dimension getViewportSize()
           
 void paintAll(Graphics g)
          Paints this component and all child components.
 void update(Graphics g)
          This method clears the background using the current background color and calls paintAll.
 
Methods inherited from class java.awt.Container
add, add, add, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, isFocusTraversable, paintComponents, remove, remove, removeAll, setLayout, validate
 
Methods inherited from class java.awt.Component
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, contains, dispatchEvent, enableEvents, getBackground, getBounds, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getLocationOnScreen, getMaximumSize, getParent, getPreferredSize, getSize, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isValid, isVisible, paint, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, repaint, repaint, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setLocation, setSize, setSize, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollPane

public ScrollPane()
Method Detail

addImpl

public void addImpl(Component c,
                    java.lang.Object constraints,
                    int index)
Description copied from class: Container
This add method encapsulates the real implementation and is called by all other add methods.
Overrides:
addImpl in class Container

paintAll

public void paintAll(Graphics g)
Description copied from class: Container
Paints this component and all child components.
Overrides:
paintAll in class Container

update

public void update(Graphics g)
Description copied from class: Container
This method clears the background using the current background color and calls paintAll. Attention: If only one child component hits the current clip are, this child is repaint without the paintAll indirection.
Overrides:
update in class Container

doLayout

public void doLayout()
Description copied from class: Container
Forces new layout of this container. Call validate in order to perform a new layout only when really neede.
Overrides:
doLayout in class Container

findComponentAt

public Component findComponentAt(int px,
                                 int py)
Description copied from class: Container
returns the component at the given position. If there is no subcomponent at the given position, this is returned.
Overrides:
findComponentAt in class Container

getMinimumSize

public Dimension getMinimumSize()
Returns a minimum size of 50x50 pixel (1/2 AWT def. Value)
Overrides:
getMinimumSize in class Container

getViewportSize

public Dimension getViewportSize()

getScrollPosition

public Point getScrollPosition()