| Package | Description |
|---|---|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.animations |
All components are animatable by potential and additional animations (unrelated
to a specific component) can be installed on the fly, transitions between
forms are also handled as part of this package.
|
| Modifier and Type | Method and Description |
|---|---|
protected Motion |
Container.createAnimateMotion(int start,
int destination,
int duration)
Creates a motion object for animation, allows subclasses to replace the motion type
used in animations (currently defaults to ease-in).
|
protected Motion |
Tabs.createTabSlideMotion(int start,
int end)
Allows developers to customize the motion object for the slide effect
to provide a linear slide effect.
|
| Modifier and Type | Method and Description |
|---|---|
static Motion |
Motion.createCubicBezierMotion(int sourceValue,
int destinationValue,
int duration,
float p0,
float p1,
float p2,
float p3)
Creates a standard Cubic Bezier motion to implement functions such as ease-in/out etc.
|
static Motion |
Motion.createDecelerationMotion(int sourceValue,
int destinationValue,
int duration)
Creates a deceleration motion starting from source value all the way to destination value
|
static Motion |
Motion.createDecelerationMotionFrom(Motion motion,
int maxDestinationValue,
int maxDuration)
Creates a deceleration motion starting from the current position of another motion.
|
static Motion |
Motion.createEaseInMotion(int sourceValue,
int destinationValue,
int duration)
Equivalent to createCubicBezierMotion with 0f, 0.42f, 1f, 1f as arguments.
|
static Motion |
Motion.createEaseInOutMotion(int sourceValue,
int destinationValue,
int duration)
Equivalent to createCubicBezierMotion with 0, 0.42, 0.58, 1.0 as arguments.
|
static Motion |
Motion.createEaseMotion(int sourceValue,
int destinationValue,
int duration)
Equivalent to createCubicBezierMotion with 0f, 0.25f, 0.25f, 1 as arguments.
|
static Motion |
Motion.createEaseOutMotion(int sourceValue,
int destinationValue,
int duration)
Equivalent to createCubicBezierMotion with 0f, 0f, 0.58f, 1.0f as arguments.
|
static Motion |
Motion.createExponentialDecayMotion(int sourceValue,
int maxValue,
double initVelocity,
double timeConstant) |
static Motion |
Motion.createFrictionMotion(int sourceValue,
int maxValue,
float initVelocity,
float friction)
Creates a friction motion starting from source with initial speed and the friction
|
static Motion |
Motion.createLinearColorMotion(int sourceValue,
int destinationValue,
int duration)
Creates a linear motion starting from source value all the way to destination value for a color value.
|
static Motion |
Motion.createLinearMotion(int sourceValue,
int destinationValue,
int duration)
Creates a linear motion starting from source value all the way to destination value
|
protected Motion |
CommonTransitions.createMotion(int startOffset,
int dest,
int speed)
This method can be overriden by subclasses to create their own motion object on the fly
|
static Motion |
Motion.createSplineMotion(int sourceValue,
int destinationValue,
int duration)
Creates a spline motion starting from source value all the way to destination value
|
Motion |
CommonTransitions.getMotion()
Motion represents the physical movement within a transition, it can
be replaced by the user to provide a more appropriate physical feel
|
| Modifier and Type | Method and Description |
|---|---|
static Motion |
Motion.createDecelerationMotionFrom(Motion motion,
int maxDestinationValue,
int maxDuration)
Creates a deceleration motion starting from the current position of another motion.
|
void |
CommonTransitions.setMotion(Motion motion)
Motion represents the physical movement within a transition, it can
be replaced by the user to provide a more appropriate physical feel
|
| Modifier and Type | Method and Description |
|---|---|
void |
CommonTransitions.setMotion(LazyValue<Motion> motion)
Motion represents the physical movement within a transition, it can
be replaced by the user to provide a more appropriate physical feel
|
Copyright © 2022. All rights reserved.