A B C D E F G H I L M O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ACTIVE - Static variable in class ej.widget.basic.Button
-
Active state.
- ACTIVE - Static variable in class ej.widget.basic.ImageButton
-
Active state.
- addChild(Widget) - Method in class ej.widget.container.Flow
- addChild(Widget) - Method in class ej.widget.container.Grid
- addChild(Widget) - Method in class ej.widget.container.List
- addChild(Widget) - Method in class ej.widget.container.OverlapContainer
- addChild(Widget, int, int) - Method in class ej.widget.container.FixedGrid
-
Adds a widget at the specified column and row.
- addChild(Widget, int, int, int, int) - Method in class ej.widget.container.Canvas
-
Adds the specified widget to this canvas.
- addChildOnBottom(Widget) - Method in class ej.widget.container.Dock
-
Adds a child which will be docked on the bottom side.
- addChildOnLeft(Widget) - Method in class ej.widget.container.Dock
-
Adds a child which will be docked on the left side.
- addChildOnRight(Widget) - Method in class ej.widget.container.Dock
-
Adds a child which will be docked on the right side.
- addChildOnTop(Widget) - Method in class ej.widget.container.Dock
-
Adds a child which will be docked on the top side.
- AnimatorMonitor - Class in ej.widget.debug
-
Monitor for Animator.
- AnimatorMonitor() - Constructor for class ej.widget.debug.AnimatorMonitor
B
- beginContainer() - Method in interface ej.widget.debug.WidgetVisitor
-
Signals the children of a
Container
are about to be visited. - blendColors(int, int, float) - Static method in class ej.widget.color.GradientHelper
-
Computes the color resulting by blending two colors with a ratio.
- BoundsInspector - Class in ej.widget.debug
-
Provides helpers to analyze the bounds of the widgets.
- boundsRecursiveToString(Widget) - Static method in class ej.widget.debug.BoundsInspector
-
Prints the bounds of the given widget and of all its children recursively.
- boundsToString(Widget) - Static method in class ej.widget.debug.BoundsInspector
-
Prints the bounds of the given widget in a String.
- Button - Class in ej.widget.basic
-
A button is a widget that displays a text and reacts to click events.
- Button() - Constructor for class ej.widget.basic.Button
-
Creates a button with an empty text.
- Button(String) - Constructor for class ej.widget.basic.Button
-
Creates a button with the given text to display.
C
- Canvas - Class in ej.widget.container
-
Lays out any number of children freely.
- Canvas() - Constructor for class ej.widget.container.Canvas
-
Creates a canvas.
- changeChildIndex(Widget, int) - Method in class ej.widget.container.Canvas
- changeChildIndex(Widget, int) - Method in class ej.widget.container.OverlapContainer
- Clickable - Interface in ej.widget.event
-
A button-like interactive element receives notifications from a
ClickEventHandler
. - ClickEventHandler - Class in ej.widget.event
-
The click event handler responsibility is to detect pointer events (press, drag, release) and help interact with a
button-like interactive
element. - ClickEventHandler(Widget, Clickable) - Constructor for class ej.widget.event.ClickEventHandler
-
Creates a swipe event handler on an element.
- ColorHelper - Class in ej.widget.color
-
Color utilities.
- computeContentOptimalSize(Size) - Method in class ej.widget.basic.ImageWidget
- computeContentOptimalSize(Size) - Method in class ej.widget.basic.Label
- computeContentOptimalSize(Size) - Method in class ej.widget.container.Canvas
- computeContentOptimalSize(Size) - Method in class ej.widget.container.Dock
- computeContentOptimalSize(Size) - Method in class ej.widget.container.FixedGrid
- computeContentOptimalSize(Size) - Method in class ej.widget.container.Flow
- computeContentOptimalSize(Size) - Method in class ej.widget.container.Grid
- computeContentOptimalSize(Size) - Method in class ej.widget.container.List
- computeContentOptimalSize(Size) - Method in class ej.widget.container.OverlapContainer
- computeContentOptimalSize(Size) - Method in class ej.widget.container.SimpleDock
- computeOptimalSize(Image, Size) - Static method in class ej.widget.render.ImagePainter
-
Computes the optimal size of an image.
- computeOptimalSize(String, Font, Size) - Static method in class ej.widget.render.StringPainter
-
Computes the optimal size of a string.
- countInstances(Widget, Class<? extends Widget>) - Static method in class ej.widget.debug.HierarchyInspector
-
Counts instances of a
Widget
type in a widget hierarchy. - countMaxDepth(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Counts the maximum depth of a widget hierarchy.
- countNumberOfContainers(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Counts containers in a given widget hierarchy.
- countNumberOfWidgets(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Counts widgets in a widget hierarchy.
- createGradient(Display, int, int) - Static method in class ej.widget.color.GradientHelper
-
Creates a gradient between two colors on a display.
D
- darkenColor(int, int) - Static method in class ej.widget.color.LightHelper
-
Gets a darkened version of a color.
- DEFAULT_DURATION - Static variable in class ej.widget.swipe.SwipeEventHandler
-
Default animation duration.
- Dock - Class in ej.widget.container
-
Lays out any number of children by docking each child one by one on a side.
- Dock() - Constructor for class ej.widget.container.Dock
-
Creates a dock.
- drawImageInArea(GraphicsContext, Image, int, int, int, int, int, int) - Static method in class ej.widget.render.ImagePainter
-
Draws an image aligned in a area.
- drawStringAtPoint(GraphicsContext, String, Font, int, int, int, int) - Static method in class ej.widget.render.StringPainter
-
Draws a string aligned with an anchor point.
- drawStringInArea(GraphicsContext, String, Font, int, int, int, int, int, int) - Static method in class ej.widget.render.StringPainter
-
Draws a string aligned in a area.
E
- ej.widget.basic - package ej.widget.basic
-
Basic widgets.
- ej.widget.color - package ej.widget.color
-
Color utilities.
- ej.widget.container - package ej.widget.container
-
Set of containers with specific layouts.
- ej.widget.debug - package ej.widget.debug
-
Debug and monitoring utilities.
- ej.widget.event - package ej.widget.event
-
Common event handlers.
- ej.widget.font - package ej.widget.font
-
Font utilities.
- ej.widget.motion - package ej.widget.motion
-
Contains classes to associate a
Motion
and anAnimation
. - ej.widget.render - package ej.widget.render
-
Painter utilities.
- ej.widget.swipe - package ej.widget.swipe
-
Swipe utilities.
- endContainer() - Method in interface ej.widget.debug.WidgetVisitor
-
Signals the children of a
Container
just have all been visited.
F
- FixedGrid - Class in ej.widget.container
-
Lays out any number of children in a grid.
- FixedGrid(int, int) - Constructor for class ej.widget.container.FixedGrid
-
Creates a grid specifying its number of columns and rows.
- Flow - Class in ej.widget.container
-
Lays out any number of children horizontally or vertically, using multiple rows if necessary.
- Flow(boolean) - Constructor for class ej.widget.container.Flow
-
Creates a flow specifying its orientation.
G
- getBlue(int) - Static method in class ej.widget.color.ColorHelper
-
Gets a color blue component.
- getCellChild(int, int) - Method in class ej.widget.container.FixedGrid
-
Gets the widget at the specified column and row.
- getCellChild(int, int) - Method in class ej.widget.container.Grid
-
Gets the widget at the specified column and row.
- getCenterChild() - Method in class ej.widget.container.Dock
-
Gets the child at the center of this dock.
- getCenterChild() - Method in class ej.widget.container.SimpleDock
-
Gets the center widget of this simple dock.
- getColor(int, int, int) - Static method in class ej.widget.color.ColorHelper
-
Gets the color from red, green and blue components.
- getColumns() - Method in class ej.widget.container.FixedGrid
-
Gets the number of columns.
- getCount() - Method in class ej.widget.container.Grid
-
Gets the number of widgets per row/column (depending on the grid orientation).
- getCurrentPosition() - Method in class ej.widget.swipe.SwipeEventHandler
-
Gets the current position of this swipe event handler.
- getDarkestColor(int, int) - Static method in class ej.widget.color.LightHelper
-
Gets the darkest of two colors.
- getFirstChild() - Method in class ej.widget.container.SimpleDock
-
Gets the first widget of this simple dock.
- getFont(String, int) - Method in class ej.widget.font.StrictFontLoader
-
Gets the MicroUI font matching the given parameters and with the plain style.
- getFont(String, int, int) - Method in class ej.widget.font.StrictFontLoader
-
Gets the MicroUI font matching the given parameters.
- getFontHeight(int) - Method in class ej.widget.font.StrictFontLoader
-
Gets the expected font height in pixels for the given size.
- getGreen(int) - Static method in class ej.widget.color.ColorHelper
-
Gets a color green component.
- getLastChild() - Method in class ej.widget.container.SimpleDock
-
Gets the last widget of this simple dock.
- getLight(int) - Static method in class ej.widget.color.LightHelper
-
Gets the light level of a color.
- getLightestColor(int, int) - Static method in class ej.widget.color.LightHelper
-
Gets the lightest of two colors.
- getLines(String) - Static method in class ej.widget.render.TextHelper
-
Gets the lines in a text.
- getMostContrastingColor(int) - Static method in class ej.widget.color.LightHelper
-
Gets the color that best contrasts against a given color.
- getMostContrastingColor(int, int, int) - Static method in class ej.widget.color.LightHelper
-
Gets the color that best contrasts against a given color.
- getOrientation() - Method in class ej.widget.container.Flow
-
Gets the orientation of this flow.
- getOrientation() - Method in class ej.widget.container.Grid
-
Gets the orientation of this grid.
- getOrientation() - Method in class ej.widget.container.List
-
Gets the orientation of this list.
- getOrientation() - Method in class ej.widget.container.SimpleDock
-
Gets the orientation of this simple dock.
- getRed(int) - Static method in class ej.widget.color.ColorHelper
-
Gets a color red component.
- getRows() - Method in class ej.widget.container.FixedGrid
-
Gets the number of rows.
- getText() - Method in class ej.widget.basic.Label
-
Gets the text displayed on this label.
- getWords(String) - Static method in class ej.widget.render.TextHelper
-
Gets the words in a text.
- GradientHelper - Class in ej.widget.color
-
Gradient utilities.
- Grid - Class in ej.widget.container
-
Lays out any number of children in a grid.
- Grid(boolean, int) - Constructor for class ej.widget.container.Grid
-
Creates a grid specifying its orientation and the number of widgets per row/column (depending on the orientation chosen via the horizontal parameter).
H
- handleClick() - Method in class ej.widget.basic.Button
-
Deprecated.Internal API.
- handleClick() - Method in class ej.widget.basic.ImageButton
-
Deprecated.Internal API.
- handleClick() - Method in class ej.widget.event.ClickEventHandler
-
Deprecated.Internal API.
- handleEvent(int) - Method in class ej.widget.basic.Button
- handleEvent(int) - Method in class ej.widget.basic.ImageButton
- handleEvent(int) - Method in class ej.widget.event.PointerEventHandler
- HierarchyInspector - Class in ej.widget.debug
-
Provides helpers to analyze a hierarchy of widgets.
- hierarchyStyleToString(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Prints the widget hierarchy of a desktop.
- hierarchyToString(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Prints a widget hierarchy.
- HORIZONTAL - Static variable in class ej.widget.container.LayoutOrientation
-
Horizontal orientation.
I
- ImageButton - Class in ej.widget.basic
-
An image button is a widget that displays an image and reacts to click events.
- ImageButton(String) - Constructor for class ej.widget.basic.ImageButton
-
Creates an image button with the resource path of the image to display.
- ImagePainter - Class in ej.widget.render
-
Provides utility methods to draw images.
- ImageWidget - Class in ej.widget.basic
-
A widget that displays a resource image.
- ImageWidget(String) - Constructor for class ej.widget.basic.ImageWidget
-
Creates an image widget with the resource path of the image to display.
- ImageWidget(String, boolean) - Constructor for class ej.widget.basic.ImageWidget
-
Creates an image widget with the resource path of the image to display and its enabled state.
- insertChild(Widget, int) - Method in class ej.widget.container.Flow
- insertChild(Widget, int) - Method in class ej.widget.container.Grid
- insertChild(Widget, int) - Method in class ej.widget.container.List
- insertChild(Widget, int) - Method in class ej.widget.container.OverlapContainer
- isInState(int) - Method in class ej.widget.basic.Button
- isInState(int) - Method in class ej.widget.basic.ImageButton
- isLightColor(int) - Static method in class ej.widget.color.LightHelper
-
Gets whether a color is light or dark.
L
- Label - Class in ej.widget.basic
-
A label is a widget that displays a text.
- Label() - Constructor for class ej.widget.basic.Label
-
Creates a label with an empty text.
- Label(String) - Constructor for class ej.widget.basic.Label
-
Creates a label with the given text to display.
- Label(String, boolean) - Constructor for class ej.widget.basic.Label
-
Creates a label with the given text to display and its enabled state.
- layOutChildren(int, int) - Method in class ej.widget.container.Canvas
- layOutChildren(int, int) - Method in class ej.widget.container.Dock
- layOutChildren(int, int) - Method in class ej.widget.container.FixedGrid
- layOutChildren(int, int) - Method in class ej.widget.container.Flow
- layOutChildren(int, int) - Method in class ej.widget.container.Grid
- layOutChildren(int, int) - Method in class ej.widget.container.List
- layOutChildren(int, int) - Method in class ej.widget.container.OverlapContainer
- layOutChildren(int, int) - Method in class ej.widget.container.SimpleDock
- LayoutOrientation - Class in ej.widget.container
-
Represents the orientation of a layout: either horizontal or vertical.
- lightenColor(int, int) - Static method in class ej.widget.color.LightHelper
-
Gets a lightened version of a color.
- LightHelper - Class in ej.widget.color
-
Color utilities regarding lightness.
- limit(int) - Method in class ej.widget.swipe.SwipeEventHandler
-
Limits a position between 0 and the content size.
- List - Class in ej.widget.container
-
Lays out any number of children horizontally or vertically.
- List(boolean) - Constructor for class ej.widget.container.List
-
Creates a list specifying its orientation.
M
- MotionAnimation - Class in ej.widget.motion
-
A motion animation allows to associate a
Motion
and anAnimation
. - MotionAnimation(Animator, Motion, MotionAnimationListener) - Constructor for class ej.widget.motion.MotionAnimation
-
Creates a motion animation.
- MotionAnimationListener - Interface in ej.widget.motion
-
Listener for
MotionAnimation
. - moveTo(int) - Method in class ej.widget.swipe.SwipeEventHandler
-
Moves to a position.
- moveTo(int, long) - Method in class ej.widget.swipe.SwipeEventHandler
-
Animates the move to a position.
O
- onAttached() - Method in class ej.widget.basic.ImageWidget
- onClick() - Method in interface ej.widget.basic.OnClickListener
-
Invoked when the target of the listener has been clicked.
- OnClickListener - Interface in ej.widget.basic
-
Defines an object which listens to click events.
- onDetached() - Method in class ej.widget.basic.ImageWidget
- onDragged(int, int) - Method in class ej.widget.event.PointerEventHandler
-
Returns
false
by default. - onDragged(int, int) - Method in class ej.widget.swipe.SwipeEventHandler
- onExited() - Method in class ej.widget.event.ClickEventHandler
- onExited() - Method in class ej.widget.event.PointerEventHandler
-
Does nothing by default.
- onMove(int) - Method in interface ej.widget.swipe.Swipeable
-
The content is moved to the given position.
- onPressed(int, int) - Method in class ej.widget.event.ClickEventHandler
- onPressed(int, int) - Method in class ej.widget.event.PointerEventHandler
-
Returns
false
by default. - onPressed(int, int) - Method in class ej.widget.swipe.SwipeEventHandler
- onReleased(int, int) - Method in class ej.widget.event.ClickEventHandler
- onReleased(int, int) - Method in class ej.widget.event.PointerEventHandler
-
Returns
false
by default. - onReleased(int, int) - Method in class ej.widget.swipe.SwipeEventHandler
- onRenderExecuted(Widget, int, int, int, int) - Method in class ej.widget.debug.RenderMonitor
- onRenderRequested(Widget, int, int, int, int) - Method in class ej.widget.debug.RenderMonitor
- onSwipeStarted() - Method in interface ej.widget.swipe.SwipeListener
-
A swipe is started.
- onSwipeStopped() - Method in interface ej.widget.swipe.SwipeListener
-
A swipe is stopped.
- onVoidTick(Animation[]) - Method in class ej.widget.debug.AnimatorMonitor
- OverlapContainer - Class in ej.widget.container
-
Lays out any number of children by stacking them.
- OverlapContainer() - Constructor for class ej.widget.container.OverlapContainer
P
- pathToWidgetToString(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Prints the path to the given widget with
>
separator. - pathToWidgetToString(Widget, char) - Static method in class ej.widget.debug.HierarchyInspector
-
Prints the path to the given widget.
- PointerEventHandler - Class in ej.widget.event
-
Abstract pointer event handler.
- PointerEventHandler(Widget) - Constructor for class ej.widget.event.PointerEventHandler
-
Instantiates the handler for the given widget.
- printHierarchy(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Prints the widget hierarchy of a desktop on the "standard" output stream.
- printHierarchyStyle(Widget) - Static method in class ej.widget.debug.HierarchyInspector
-
Prints the widget hierarchy of a desktop on the "standard" output stream.
R
- removeAllChildren() - Method in class ej.widget.container.Canvas
- removeAllChildren() - Method in class ej.widget.container.Dock
- removeAllChildren() - Method in class ej.widget.container.FixedGrid
- removeAllChildren() - Method in class ej.widget.container.Flow
- removeAllChildren() - Method in class ej.widget.container.Grid
- removeAllChildren() - Method in class ej.widget.container.List
- removeAllChildren() - Method in class ej.widget.container.OverlapContainer
- removeAllChildren() - Method in class ej.widget.container.SimpleDock
- removeChild(int, int) - Method in class ej.widget.container.FixedGrid
-
Removes the widget at the specified column and row.
- removeChild(Widget) - Method in class ej.widget.container.Canvas
- removeChild(Widget) - Method in class ej.widget.container.Dock
- removeChild(Widget) - Method in class ej.widget.container.Flow
- removeChild(Widget) - Method in class ej.widget.container.Grid
- removeChild(Widget) - Method in class ej.widget.container.List
- removeChild(Widget) - Method in class ej.widget.container.OverlapContainer
- removeChild(Widget) - Method in class ej.widget.container.SimpleDock
- renderContent(GraphicsContext, int, int) - Method in class ej.widget.basic.ImageWidget
- renderContent(GraphicsContext, int, int) - Method in class ej.widget.basic.Label
- RenderMonitor - Class in ej.widget.debug
-
Monitor for Widget rendering.
- RenderMonitor() - Constructor for class ej.widget.debug.RenderMonitor
- replaceChild(int, Widget) - Method in class ej.widget.container.Flow
- replaceChild(int, Widget) - Method in class ej.widget.container.Grid
- replaceChild(int, Widget) - Method in class ej.widget.container.List
- replaceChild(int, Widget) - Method in class ej.widget.container.OverlapContainer
S
- setCenterChild(Widget) - Method in class ej.widget.container.Dock
-
Sets the child which will be at the center.
- setCenterChild(Widget) - Method in class ej.widget.container.SimpleDock
-
Sets the center widget of this simple dock.
- setCount(int) - Method in class ej.widget.container.Grid
-
Sets the number of widgets per row/column (depending on the grid orientation).
- setDuration(long) - Method in class ej.widget.swipe.SwipeEventHandler
-
Sets the duration.
- setFirstChild(Widget) - Method in class ej.widget.container.SimpleDock
-
Sets the first widget of this simple dock.
- setImagePath(String) - Method in class ej.widget.basic.ImageWidget
-
Sets the image path.
- setLastChild(Widget) - Method in class ej.widget.container.SimpleDock
-
Sets the last widget of this simple dock.
- setMotionFunction(Function) - Method in class ej.widget.swipe.SwipeEventHandler
-
Sets the motion function.
- setOnClickListener(OnClickListener) - Method in class ej.widget.basic.Button
-
Sets the listener on the click events of this button.
- setOnClickListener(OnClickListener) - Method in class ej.widget.basic.ImageButton
-
Sets the listener on the click events of this button.
- setOnClickListener(OnClickListener) - Method in class ej.widget.event.ClickEventHandler
-
Sets the "on click" listener.
- setOrientation(boolean) - Method in class ej.widget.container.Flow
-
Sets the orientation of this flow.
- setOrientation(boolean) - Method in class ej.widget.container.Grid
-
Sets the orientation of this grid.
- setOrientation(boolean) - Method in class ej.widget.container.List
-
Sets the orientation of this list.
- setOrientation(boolean) - Method in class ej.widget.container.SimpleDock
-
Sets the orientation of this simple dock.
- setPressed(boolean) - Method in class ej.widget.basic.Button
- setPressed(boolean) - Method in class ej.widget.basic.ImageButton
- setPressed(boolean) - Method in interface ej.widget.event.Clickable
-
Changes the clickable element state.
- setSwipeListener(SwipeListener) - Method in class ej.widget.swipe.SwipeEventHandler
-
Sets the swipe listener.
- setText(String) - Method in class ej.widget.basic.Label
-
Sets the text to display on this label.
- SimpleDock - Class in ej.widget.container
-
Lays out three children vertically or horizontally.
- SimpleDock(boolean) - Constructor for class ej.widget.container.SimpleDock
-
Creates a simple dock specifying its orientation.
- start() - Method in class ej.widget.motion.MotionAnimation
-
Starts (or restarts) this motion animation.
- stop() - Method in class ej.widget.motion.MotionAnimation
-
Stops this motion animation.
- stop() - Method in class ej.widget.swipe.SwipeEventHandler
-
Forces the end of the animation.
- StrictFontLoader - Class in ej.widget.font
-
Returns the font which matches exactly the font parameters.
- StrictFontLoader() - Constructor for class ej.widget.font.StrictFontLoader
-
Creates a strict font loader.
- StringPainter - Class in ej.widget.render
-
Provides utility methods to draw strings.
- Swipeable - Interface in ej.widget.swipe
-
A swipeable element receives notifications from a
SwipeEventHandler
. - SwipeEventHandler - Class in ej.widget.swipe
-
The swipe event handler responsibility is to detect pointer events (press, drag, release) and help moving over some element(s).
- SwipeEventHandler(Widget, int[], boolean, boolean, boolean, Swipeable, Animator) - Constructor for class ej.widget.swipe.SwipeEventHandler
-
Creates a swipe event handler on a collection with heterogeneous sizes.
- SwipeEventHandler(Widget, int, boolean, boolean, Swipeable, Animator) - Constructor for class ej.widget.swipe.SwipeEventHandler
-
Creates a swipe event handler on an element.
- SwipeEventHandler(Widget, int, int, boolean, boolean, boolean, Swipeable, Animator) - Constructor for class ej.widget.swipe.SwipeEventHandler
-
Creates a swipe event handler on a collection.
- SwipeEventHandler(Widget, int, int, boolean, boolean, Swipeable, Animator) - Constructor for class ej.widget.swipe.SwipeEventHandler
-
Creates a swipe event handler on a collection.
- SwipeListener - Interface in ej.widget.swipe
-
A swipe listener is notified when a swipe is started or stopped.
T
- TextHelper - Class in ej.widget.render
-
Provides some text facilities.
- tick(int, boolean) - Method in interface ej.widget.motion.MotionAnimationListener
-
Called regularly by the animator, unless the value has not changed.
U
- updateComponent(int, int) - Static method in class ej.widget.color.ColorHelper
-
Update a color component by incrementing it.
V
- VERTICAL - Static variable in class ej.widget.container.LayoutOrientation
-
Vertical orientation.
- visitHierarchy(Widget, WidgetVisitor) - Static method in class ej.widget.debug.HierarchyInspector
-
Visits a widget hierarchy.
- visitWidget(Widget) - Method in interface ej.widget.debug.WidgetVisitor
-
Visits a
Widget
.
W
- WidgetVisitor - Interface in ej.widget.debug
-
Visitor for
Widget
andContainer
. - wrap(String, Font, int) - Static method in class ej.widget.render.TextHelper
-
Wraps a text in lines.
All Classes All Packages