|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.ScrollView
net.rim.device.api.ui.Manager
net.rim.device.api.ui.container.AbsoluteFieldManager
net.rim.device.api.ui.container.ComponentCanvas
net.rim.device.api.amms.control.camera.ViewfinderOverlay.OverlayCanvas
public static class ViewfinderOverlay.OverlayCanvas
A ComponentCanvas that always has the same extent as the provided viewfinder, and positions its ViewfinderOverlay.OverlayCanvas.Positionable
Fields after layout.
| Nested Class Summary | ||
|---|---|---|
static interface |
ViewfinderOverlay.OverlayCanvas.Positionable
Positionable items added to a ViewfinderOverlay.OverlayCanvas are positioned after layout to the location returned. |
|
| Field Summary |
|---|
| Fields inherited from class net.rim.device.api.ui.Manager |
|---|
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, HORIZONTAL_SCROLL_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK, VERTICAL_SCROLL_MASK |
| Constructor Summary | ||
|---|---|---|
ViewfinderOverlay.OverlayCanvas(Field viewfinder)
Creates a new instance of OverlayCanvas. |
||
| Method Summary | ||
|---|---|---|
protected void |
sublayout(int width,
int height)
This ViewfinderOverlay.OverlayCanvas calls ComponentCanvas.resize(int, int) during layout to match the dimensions of the provided viewfinder by
querying the viewfinder's Field.getPreferredWidth() and Field.getPreferredHeight() methods. |
|
| Methods inherited from class net.rim.device.api.ui.container.ComponentCanvas |
|---|
resize, resizeImmediately |
| Methods inherited from class net.rim.device.api.ui.container.AbsoluteFieldManager |
|---|
add, getPreferredHeight, getPreferredWidth, insert, nextFocus, setPosChild |
| Methods inherited from class net.rim.device.api.ui.ScrollView |
|---|
configurationChanged, getHorizontalAdjustment, getVerticalAdjustment, getVisibleHeight, getVisibleWidth, onExposed, setCurrentLocation, setExtent, setHorizontalAdjustment, setHorizontalScroll, setHorizontalScroll, setScrollListener, setVerticalAdjustment, setVerticalScroll, setVerticalScroll, valueChanged, waitForScrolling |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewfinderOverlay.OverlayCanvas(Field viewfinder)
OverlayCanvas.
viewfinder - The viewfinder for this overlay.
NullPointerException - if viewfinder is
null.| Method Detail |
|---|
protected void sublayout(int width,
int height)
ViewfinderOverlay.OverlayCanvas calls ComponentCanvas.resize(int, int) during layout to match the dimensions of the provided viewfinder by
querying the viewfinder's Field.getPreferredWidth() and Field.getPreferredHeight() methods.
Any Field added to this manager that implements the ViewfinderOverlay.OverlayCanvas.Positionable interface will be
positioned after layout.
sublayout in class ComponentCanvaswidth - This parameter is ignored.height - This parameter is ignored.Field#sublayout
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal