public class SlideScreenshotTransitionContainer extends ScreenshotTransitionContainer
forward, newScreenshot, newWidget, step, stop
DURATION
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
SlideScreenshotTransitionContainer(int direction,
boolean overlap,
boolean clip)
Creates a slide transition manager.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getStop(int contentWidth,
int contentHeight)
Gets the stop value of the motion.
|
void |
render(ej.microui.display.GraphicsContext g) |
protected void |
resetContext()
Actually shows the new widget (add it as a child) and cleans the fields.
|
isAnimating, isTransparent, show, takeScreenshot, updateStep
addAnimationStepListener, cancelAnimation, createMotion, getDuration, getMotionFactory, hideNotify, notifyAnimationStepListeners, notifyAnimationStepListeners, removeAnimationStepListener, setBoundsContent, setChildBounds, setDuration, setMotionFactory, startAnimation, stopAnimation, tick, validateContent
add, addClassSelector, contains, gainFocus, getAttribute, getChild, getChildrenCount, getChildrenElements, getParentElement, getStyle, hasClassSelector, isInState, lostFocus, mergeStyle, removeAllClassSelectors, removeClassSelector, removeInstanceStyle, renderContent, setBounds, setClassSelectors, setEnabled, updateStyle, updateStyleOnly, validate
getFocus, getFocusIndex, getNext, getWidget, getWidgetAt, getWidgets, getWidgetsCount, handleEvent, iterator, remove, removeAllWidgets, requestFocus, requestFocus, requestFocusFrom, showNotify
getAbsoluteX, getAbsoluteX, getAbsoluteY, getAbsoluteY, getEventHandler, getHeight, getPanel, getParent, getPreferredHeight, getPreferredWidth, getRelativeX, getRelativeY, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isShown, isValid, isVisible, repaint, repaint, revalidate, revalidateSubTree, setEventHandler, setLocation, setPreferredSize, setSize, setVisible
public SlideScreenshotTransitionContainer(int direction, boolean overlap, boolean clip)
The given direction is the way the widgets slide when forward. For example, passing MWT.UP
, the new
widget starts below and goes upward.
direction
- one of MWT.LEFT
, MWT.RIGHT
, MWT.TOP
, MWT.BOTTOM
.overlap
- true
if the new widget overlaps the previous one, false
if the new widget
pushes the previous one.clip
- true
if the new widget does not move, false
if the new widget slides.public void render(ej.microui.display.GraphicsContext g)
render
in interface ej.mwt.Renderable
render
in class StyledComposite
protected int getStop(int contentWidth, int contentHeight)
ScreenshotTransitionContainer
0
.getStop
in class ScreenshotTransitionContainer
contentWidth
- the content width.contentHeight
- the content height.protected void resetContext()
ScreenshotTransitionContainer
resetContext
in class ScreenshotTransitionContainer