TransitionContainer
.@Deprecated public class HorizontalScreenshotTransitionManager extends TransitionManager
A screenshot of the pages is done at the beginning of the transition, then for each step of the transition, these images are drawn.
This transition manager allows faster transitions than HorizontalTransitionManager
but requires more runtime
memory.
Constructor and Description |
---|
HorizontalScreenshotTransitionManager()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
animate(Page oldPage,
Page newPage,
boolean forward)
Deprecated.
Animates the transition between two pages of the navigation container.
|
boolean |
handleEvent(int event)
Deprecated.
Handles an event that occurs on the navigation container.
|
protected boolean |
onDrag(Page currentPage,
int pointerX)
Deprecated.
Called when the user drags the pages to go back to the previous page.
|
void |
render(ej.microui.display.GraphicsContext g,
Style style,
Rectangle bounds)
Deprecated.
Renders the content of the navigation container without the border, margin and padding specified in the style.
|
addPage, canGoBackward, canGoForward, getContentBounds, getNavigator, getNextPage, getPreviousPage, goBackward, goForward, removePage, setChildBounds, setCurrentPage, show, startTransition, stopTransition
public HorizontalScreenshotTransitionManager()
public void animate(Page oldPage, Page newPage, boolean forward)
TransitionManager
animate
in class TransitionManager
oldPage
- the old page.newPage
- the new page.forward
- true
if going to a page that is after the current one, false
otherwise.public void render(ej.microui.display.GraphicsContext g, Style style, Rectangle bounds)
TransitionManager
Do nothing by default.
render
in class TransitionManager
g
- the graphics context where to render the content of the renderable.style
- the style to use.bounds
- the remaining size to render the content.public boolean handleEvent(int event)
TransitionManager
handleEvent
in class TransitionManager
event
- the event to handle.true
if the widget has consumed the event, false
otherwise.protected boolean onDrag(Page currentPage, int pointerX)
currentPage
- the current page.pointerX
- the pointer current x coordinate.true
if two pages are visible, false
otherwise.