|
|||||||||
| 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.amms.control.camera.ViewfinderOverlay.VideoControlOverlayField
public abstract static class ViewfinderOverlay.VideoControlOverlayField
ViewfinderOverlay.VideoControlOverlayField is a Field that matches the dimensions of the video window controlled by a given
VideoControl, and overlays it directly. When used in conjunction with ViewfinderOverlay.OverlayCanvas its position
is updated automatically with respect to the video window (i.e. perhaps after rotation if the video window is not full screen).
Users can implement Field.paint(net.rim.device.api.ui.Graphics) to draw over the video window, which may or may not be a subset of the screen's
display.
| Field Summary |
|---|
| Constructor Summary | ||
|---|---|---|
ViewfinderOverlay.VideoControlOverlayField(VideoControl videoControl)
Creates a new instance of VideoControlOverlayField. |
||
| Method Summary | ||
|---|---|---|
int |
getDisplayHeight()
Height of the VideoControl. |
|
int |
getDisplayWidth()
Width of the VideoControl. |
|
int |
getPreferredHeight()
Preferred height of this field. |
|
int |
getPreferredWidth()
Preferred width of this field. |
|
int |
getXPosition()
X position of the VideoControl. |
|
int |
getYPosition()
Y position of the VideoControl. |
|
protected void |
layout(int width,
int height)
Lays out field contents. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewfinderOverlay.VideoControlOverlayField(VideoControl videoControl)
VideoControlOverlayField.
videoControl - the VideoControl that will control this Field's extent
IllegalArgumentException - if videoControl is null.| Method Detail |
|---|
protected void layout(int width,
int height)
Field This method is abstract; any class that extends Field
must implement this method appropriate to its needs.
This method is invoked after the screen has been created, or when
system parameters change (for example, after a system font change).
Field.getExtent() will return a valid value after this method is
invoked. Implementations of this method must invoke Field.setExtent(int, int)
with the size used by the field.
During this call, Field.setExtent(int, int) must be called with parameters
such that both width and height are between 0 and the values passed
into this function for the Manager to be able to position this Field
properly.
Fields may cache system attributes for efficiency (such as the current system font); however, they cannot depend on these attributes remaining unchanged. When one of these attributes changes, a message event is sent to that effect. In these cases, this method refetches and caches these attributes.
layout in class Fieldwidth - The amount of available horizontal space.height - The amount of available vertical space.Field#sublayoutpublic int getPreferredWidth()
getPreferredWidth in class FieldViewfinderOverlay.VideoControlOverlayField.getDisplayWidth() by default.public int getDisplayWidth()
VideoControl.
VideoControl.VideoControl.getDisplayWidth()public int getPreferredHeight()
getPreferredHeight in class FieldViewfinderOverlay.VideoControlOverlayField.getDisplayHeight() by default.public int getDisplayHeight()
VideoControl.
VideoControl.VideoControl.getDisplayHeight()public int getXPosition()
VideoControl.
getXPosition in interface ViewfinderOverlay.OverlayCanvas.PositionableVideoControl.VideoControl.getDisplayX()public int getYPosition()
VideoControl.
getYPosition in interface ViewfinderOverlay.OverlayCanvas.PositionableVideoControl.VideoControl.getDisplayY()
|
|||||||||
| 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