public class BulletPagingIndicator extends PagingIndicator implements Animation
The bullet paging indicator is hidden by sliding smoothly the dots outside the drawing area.
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
BulletPagingIndicator()
Creates an horizontal bullet paging indicator.
|
BulletPagingIndicator(boolean horizontal)
Creates a bullet paging indicator.
|
Modifier and Type | Method and Description |
---|---|
void |
hide()
Hides the scroll indicator.
|
void |
hideNotify() |
void |
renderContent(ej.microui.display.GraphicsContext g,
Style style,
Rectangle bounds)
Renders the content of the renderable without the border, margin and padding specified in the style.
|
void |
show()
Shows the scroll indicator.
|
boolean |
tick(long currentTimeMillis)
Called by an animator at a fixed rate.
|
Rectangle |
validateContent(Style style,
Rectangle bounds)
Gets the content size of the renderable without the border, margin and padding specified in the style.
|
getItemsCount, getPercent, getSelectedItem, isHorizontal, setHorizontal, setItemsCount, setSelectedItem
addClassSelector, contains, gainFocus, getAttribute, getChild, getChildrenCount, getChildrenElements, getContentBounds, getParentElement, getStyle, hasClassSelector, isInState, isTransparent, lostFocus, mergeStyle, removeAllClassSelectors, removeClassSelector, removeInstanceStyle, render, setClassSelectors, setEnabled, updateStyle, updateStyleOnly, validate
getAbsoluteX, getAbsoluteX, getAbsoluteY, getAbsoluteY, getEventHandler, getHeight, getPanel, getParent, getPreferredHeight, getPreferredWidth, getRelativeX, getRelativeY, getWidgetAt, getWidth, getX, getY, handleEvent, hasFocus, invalidate, isEnabled, isShown, isValid, isVisible, repaint, repaint, requestFocus, requestFocus, revalidate, revalidateSubTree, setBounds, setEventHandler, setLocation, setPreferredSize, setSize, setVisible, showNotify
public BulletPagingIndicator()
public BulletPagingIndicator(boolean horizontal)
horizontal
- true
if the paging indicator is horizontal, false
otherwise.public void hideNotify()
hideNotify
in interface ej.mwt.Renderable
hideNotify
in class ej.mwt.Widget
public void show()
PagingIndicator
show
in class PagingIndicator
public void hide()
PagingIndicator
hide
in class PagingIndicator
public boolean tick(long currentTimeMillis)
Animation
The given time is based on Util.platformTimeMillis()
which is monotonic.
public void renderContent(ej.microui.display.GraphicsContext g, Style style, Rectangle bounds)
StyledRenderable
The given graphics context is translated and clipped according to the given bounds (the border, margin and padding are applied on this graphics context before).
renderContent
in interface StyledRenderable
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.Outline.apply(GraphicsContext, Rectangle)
,
Border.apply(GraphicsContext, Rectangle, int)
,
StyleHelper.renderWithoutContent(GraphicsContext, Rectangle, Style)
public Rectangle validateContent(Style style, Rectangle bounds)
StyledRenderable
validateContent
in interface StyledRenderable
style
- the style to use.bounds
- the bounds available for the content. A width or a height equals to MWT.NONE
means no
constraint on this dimension.