getView
getView: (JViewport) -> Component?The view, or nil.
JViewport.new()
JScrollPane.new():getViewport()| Method | Returns | Description |
|---|---|---|
getView() | Component? | The view, or nil. |
setView(Component?) | () | Makes view the view (the old one is removed). |
getViewPosition() | Point | Where the view's top-left shows, in view coordinates. |
setViewPosition(Point) | () | Scrolls the view so p shows at the top-left. |
getExtentSize() | Dimension | The visible part's size. |
getViewRect() | Rectangle | The visible part of the view, in view coordinates. |
new() | JViewport | A viewport with no view. |
init(JViewport) | () | A viewport with no view. |
isInstance(any) | boolean | Whether obj is a JViewport object, a class(JViewport) subclass's included. |
| Field | Type | Description |
|---|---|---|
super | JComponentClass | JComponent's class table: the base class. |
| Method | Returns | Description |
|---|---|---|
JScrollPane.getViewport | JViewport? | The viewport (its child 0). |
JViewportClass.new | JViewport | A viewport with no view. |
getViewgetView: (JViewport) -> Component?The view, or nil.
setViewsetView: (JViewport, Component?) -> ()Makes view the view (the old one is removed).
getViewPositiongetViewPosition: (JViewport) -> PointWhere the view's top-left shows, in view coordinates.
setViewPositionsetViewPosition: (JViewport, Point) -> ()Scrolls the view so p shows at the top-left.
getExtentSizegetExtentSize: (JViewport) -> DimensionThe visible part's size.
getViewRectgetViewRect: (JViewport) -> RectangleThe visible part of the view, in view coordinates.
newnew: () -> JViewportA viewport with no view.
initinit: (JViewport) -> ()A viewport with no view.
isInstanceisInstance: (any) -> booleanWhether obj is a JViewport object, a class(JViewport) subclass's included.