void addChangeListener(ChangeListener l) | Adds a ChangeListener to detect any change in viewport's extent size, position, or size, all at once to modify it accordingly. |
protected void addImpl(Component child, Object constraints, int index) | JViewport's single lightweight child is set possibly that is null. |
protected JViewport.ViewListener createViewListener() | Creates a listener for the view. |
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) | Alerts listeners of a change in property. |
AccessibleContext getAccessibleContext() | Returns the AccessibleContext linked to the JViewport instance. |
ChangeListener[] getChangeListeners() | Returns back an array containing every ChangeListener that addChangeListener() adds to this JViewport. |
Dimension getExtentSize() | In view coordinates, it returns the size of the visible portion of the view. |
Insets getInsets() | Since borders are not allowed on a JViewport, the insets (border) dimensions are returned as (0,0,0,0). |
Insets getInsets(Insets insets) | Returns an Insets object with the values from the JViewports inset. |
int getScrollMode() | Gets the current scrolling mode. |
ViewportUI getUI() | L&F object is responsible for rendering Returnsstartsthe element. |
Component getView() | Returns null or the only child of the JViewport. |
Point getViewPosition() | Returns 0,0 in the event that there is no view, or the view coordinates that are shown in the viewport's top left corner. |
Rectangle getViewRect() | Returns a rectangle with the size getExtentSize() and the origin getViewPosition(). |
Dimension getViewSize() | Return the desired size if the view's size hasn't been explicitly specified, and return the view's current size otherwise. |
protected boolean isPaintingOrigin() | Returns true so that the painting start from JViewport or one of its predecessors if the scroll mode is BACKINGSTORE_SCROLL_MODE. |
void remove(Component child) | Eliminates the single lightweight child's viewport. |
void removeChangeListener(ChangeListener l) | will delete the ChangeListener if it receives any notifications for a change to the viewport's extent size, position, or size. |
void reshape(int x, int y, int w, int h) | Defines this viewport's boundaries. |
void scrollRectToVisible(Rectangle contentRect) | Makes the rectangle inside the view visible by scrolling the view. |
void setExtentSize(Dimension newExtent) | Uses the view coordinates to set the size of the visible portion of the view. |
void setScrollMode(int mode) | Maintains the content of the viewport being scrolled. |
void setUI(ViewportUI ui) | This object specifies the L&F that renders this component. |
void setView(Component view) | Sets the single lightweight child (view) of the JViewport (can be null also). |
void setViewPosition(Point p) | Sets the view coordinates that show up in the viewport's top left corner. If there is no view, nothing happens. |
void setViewSize(Dimension newSize) | Sets the size of the view. |
void updateUI() | The UI attribute is reset to a value from the current look and feel. |