public class JViewport extends Container
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
JViewport()
Construct a JViewport.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(int level_) |
void |
draw()
Draw all the components in this container.
|
Rectangle |
getBounds()
Get the bounding rectangle of this component, relative to
the origin of its parent Container.
|
Dimension |
getExtentSize()
Returns the size of the visible part of the view.
|
Component |
getView()
Returns the JViewport's one child.
|
Point |
getViewPosition()
Gets the coordinates of the origin of the view, relative to
the origin of the viewport.
|
Dimension |
getViewSize()
Returns the child component's size.
|
void |
setView(Component child_)
Set the JViewport's one child.
|
void |
setViewPosition(Point origin_)
Sets the coordinates of the origin of the view, relative to
the origin of the viewport.
|
add, add, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isFocusTraversable, isValid, minimumSize, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBackground, setBounds, setBounds, setBounds, setFocus, setForeground, setHeight, setLayout, setSize, setSize, setWidth, validateaddFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, isDisplayed, isEnabled, isRecursivelyVisible, isTotallyObscured, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setEnabled, setLocation, setLocation, setName, setParent, setVisible, show, validateCursesColorpublic void setView(Component child_)
public Component getView()
public void draw()
Containerpublic Point getViewPosition()
public void setViewPosition(Point origin_)
public Dimension getViewSize()
public Rectangle getBounds()
Componentpublic Dimension getExtentSize()