public abstract class ScreenshotTransitionContainer extends TransitionContainer
Modifier and Type | Field and Description |
---|---|
protected boolean |
forward
true if going forward, false otherwise. |
protected ej.microui.display.Image |
newScreenshot
The screenshot of the new widget.
|
protected ej.mwt.Widget |
newWidget
The new widget to show.
|
protected int |
step
The current step value of the motion.
|
protected int |
stop
The stop value of the motion.
|
DURATION
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
ScreenshotTransitionContainer() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getStop(int contentWidth,
int contentHeight)
Gets the stop value of the motion.
|
protected boolean |
isAnimating()
Gets whether the transition container is doing the transition or not.
|
boolean |
isTransparent() |
protected void |
resetContext()
Actually shows the new widget (add it as a child) and cleans the fields.
|
void |
show(ej.mwt.Widget widget,
boolean forward)
Shows a new widget.
|
protected void |
takeScreenshot(ej.mwt.Widget widget,
Rectangle contentBounds)
Takes a screenshot of a widget.
|
protected void |
updateStep(int step)
Updates the current step.
|
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, render, 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
protected boolean forward
true
if going forward, false
otherwise.show(Widget, boolean)
@Nullable protected ej.mwt.Widget newWidget
show(Widget, boolean)
@Nullable protected ej.microui.display.Image newScreenshot
protected int stop
getStop(int, int)
protected int step
public boolean isTransparent()
isTransparent
in class StyledComposite
public void show(ej.mwt.Widget widget, boolean forward)
TransitionContainer
show
in class TransitionContainer
widget
- the new widget to show.forward
- true
if going forward, false
otherwise.protected void takeScreenshot(ej.mwt.Widget widget, Rectangle contentBounds)
widget
- the widget.contentBounds
- the content bounds.protected abstract int getStop(int contentWidth, int contentHeight)
0
.contentWidth
- the content width.contentHeight
- the content height.protected boolean isAnimating()
true
during the animation, false
otherwise.protected void resetContext()
resetContext
in class TransitionContainer
protected void updateStep(int step)
TransitionContainer
Called during the animation using the current value of the motion.
updateStep
in class TransitionContainer
step
- the current step.