Changed Methods |
void addChangeListener(ChangeListener )
|
Documentation changed from old to new. |
Adds a ChangeListener to the list that is notified each time the view's size position or the viewport's extent size has changed. |
void addImpl(Component, Object, int)
|
Documentation changed from old to new. |
Sets the JViewport s one lightweight child which can be null . |
boolean computeBlit(int, int, Point, Point, Dimension, Rectangle)
|
Documentation changed from old to new. |
Computes the parameters for a blit where the backing store image currently contains oldLoc in the upper left hand corner and we're scrolling to newLoc . |
LayoutManager createLayoutManager()
|
Documentation changed from old to new. |
Subclassers can override this to install a different layout manager (or null ) in the constructor. |
ViewListener createViewListener()
|
Documentation changed from old to new. |
Creates a listener for the view. |
void fireStateChanged()
|
Documentation changed from old to new. |
Notifies all ChangeListeners when the views size position or the viewports extent size has changed. |
AccessibleContext getAccessibleContext()
|
Documentation changed from old to new. |
Gets the AccessibleContext associated with this JViewport. |
Dimension getExtentSize()
|
Documentation changed from old to new. |
Returns the size of the visible part of the view in view coordinates. |
String getUIClassID()
|
Documentation changed from old to new. Method was inherited from JComponent, but is now defined locally.
|
Returns a string that specifies the name of the L&F class that renders this component. |
Component getView()
|
Documentation changed from old to new. |
Returns the JViewport s one child or null . |
Point getViewPosition()
|
Documentation changed from old to new. |
Returns the view coordinates that appear in the upper left hand corner of the viewport or 0 0 if there's no view. |
Rectangle getViewRect()
|
Documentation changed from old to new. |
Returns a rectangle whose origin is getViewPosition and size is getExtentSize . |
Dimension getViewSize()
|
Documentation changed from old to new. |
If the view's size hasn't been explicitly set return the preferred size otherwise return the view's current size. |
boolean isBackingStoreEnabled()
|
Documentation changed from old to new. Now deprecated.
|
As of Java 2 platform v1.3, replaced by getScrollMode() . |
boolean isOptimizedDrawingEnabled()
|
Documentation changed from old to new. |
The JViewport overrides the default implementation of this method (in JComponent ) to return false. |
void paint(Graphics )
|
Documentation changed from old to new. |
Depending on whether the backingStore is enabled either paint the image through the backing store or paint just the recently exposed part using the backing store to "blit" the remainder. |
String paramString()
|
Documentation changed from old to new. |
Returns a string representation of this JViewport . |
void removeChangeListener(ChangeListener )
|
Documentation changed from old to new. |
Removes a ChangeListener from the list that's notified each time the views size position or the viewports extent size has changed. |
void reshape(int, int, int, int)
|
Documentation changed from old to new. |
Sets the bounds of this viewport. |
void scrollRectToVisible(Rectangle )
|
Documentation changed from old to new. |
Overridden to scroll the view so that Rectangle within the view becomes visible. |
void setBackingStoreEnabled(boolean )
|
Documentation changed from old to new. Now deprecated.
|
As of Java 2 platform v1.3, replaced by setScrollMode() . |
void setBorder(Border )
|
Documentation changed from old to new. |
The viewport "scrolls" it's child (called the "view") by the normal parent/child clipping (typically the view is moved in the opposite direction of the scroll). |
void setExtentSize(Dimension )
|
Documentation changed from old to new. |
Sets the size of the visible part of the view using view coordinates. |
void setView(Component )
|
Documentation changed from old to new. |
Sets the JViewport s one lightweight child (view ) which can be null . |
void setViewPosition(Point )
|
Documentation changed from old to new. |
Sets the view coordinates that appear in the upper left hand corner of the viewport does nothing if there's no view. |
void setViewSize(Dimension )
|
Documentation changed from old to new. |
Sets the view coordinates that appear in the upper left hand corner of the viewport and the size of the view. |
void updateUI()
|
Documentation changed from old to new. Method was inherited from JComponent, but is now defined locally.
|
Notification from the UIFactory that the L&F has changed. |
void firePropertyChange(String, Object, Object)
|
Documentation changed from old to new. |
Notifies listeners of a property change. |
Insets getInsets()
|
Documentation changed from old to new. |
Returns the insets (border) dimensions as (0 0 0 0) since borders are not supported on a JViewport . |
Insets getInsets(Insets )
|
Documentation changed from old to new. |
Returns an Insets object containing this JViewport s inset values. |
void remove(Component )
|
Documentation changed from old to new. |
Removes the Viewport s one lightweight child. |
void repaint(long, int, int, int, int)
|
Documentation changed from old to new. |
Always repaint in the parents coordinate system to make sure only one paint is performed by the RepaintManager . |
Dimension toViewCoordinates(Dimension )
|
Documentation changed from old to new. |
Converts a size in pixel coordinates to view coordinates. |
Point toViewCoordinates(Point )
|
Documentation changed from old to new. |
Converts a point in pixel coordinates to view coordinates. |