Skip navigation links
A C D E F G H I K L M O P R S T U 

A

AbstractSpecLayerGroup<T extends AbstractSpecLayerGroup> - Class in com.actinarium.rhythm
An abstract base class with common functionality for Rhythm overlay layers that have sub-layers
AbstractSpecLayerGroup() - Constructor for class com.actinarium.rhythm.AbstractSpecLayerGroup
 
AbstractSpecLayerGroup(int) - Constructor for class com.actinarium.rhythm.AbstractSpecLayerGroup
 
addAlias(String, String) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Add an alias for arbitrary layer type.
addLayer(RhythmSpecLayer) - Method in class com.actinarium.rhythm.AbstractSpecLayerGroup
Add a spec layer to this group.
addLayer(RhythmSpecLayer) - Method in interface com.actinarium.rhythm.RhythmSpecLayerParent
Add layer to this parent.
addLayersFrom(RhythmOverlay) - Method in class com.actinarium.rhythm.RhythmOverlay
Add all layers to this overlay from another.
ALIGN_INSIDE - Static variable in class com.actinarium.rhythm.layer.Keyline
 
ALIGN_OUTSIDE - Static variable in class com.actinarium.rhythm.layer.Keyline
 
ARG_BOTTOM - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ARG_CLIP_ONLY - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ARG_COLOR - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel.Factory
 
ARG_COLOR - Static variable in class com.actinarium.rhythm.layer.Fill.Factory
 
ARG_COLOR - Static variable in class com.actinarium.rhythm.layer.GridLines.Factory
 
ARG_COLOR - Static variable in class com.actinarium.rhythm.layer.Keyline.Factory
 
ARG_COLOR - Static variable in class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
ARG_COUNT - Static variable in class com.actinarium.rhythm.layer.Columns.Factory
 
ARG_DISTANCE - Static variable in class com.actinarium.rhythm.layer.Keyline.Factory
 
ARG_EDGE - Static variable in class com.actinarium.rhythm.layer.GridLines.Factory
 
ARG_EDGE - Static variable in class com.actinarium.rhythm.layer.Keyline.Factory
 
ARG_GRAVITY - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel.Factory
 
ARG_HEIGHT - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ARG_LEFT - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ARG_LIMIT - Static variable in class com.actinarium.rhythm.layer.GridLines.Factory
 
ARG_NO_CLIP - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ARG_OFFSET - Static variable in class com.actinarium.rhythm.layer.GridLines.Factory
 
ARG_OUTSIDE - Static variable in class com.actinarium.rhythm.layer.Keyline.Factory
 
ARG_RATIO - Static variable in class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
ARG_RIGHT - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ARG_STEP - Static variable in class com.actinarium.rhythm.layer.GridLines.Factory
 
ARG_TEXT - Static variable in class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
ARG_TEXT_COLOR - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel.Factory
 
ARG_TEXT_COLOR - Static variable in class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
ARG_TEXT_SIZE - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel.Factory
 
ARG_THICKNESS - Static variable in class com.actinarium.rhythm.layer.GridLines.Factory
 
ARG_THICKNESS - Static variable in class com.actinarium.rhythm.layer.Keyline.Factory
 
ARG_THICKNESS - Static variable in class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
ARG_TOP - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ARG_WIDTH - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
ArgumentsBundle - Interface in com.actinarium.rhythm
An interface that defines an arguments container that will be used by RhythmSpecLayerFactory implementations to query spec layer properties when creating new layers.
ArgumentsBundle.DimensionUnits - Annotation Type in com.actinarium.rhythm
Type definition for dimension argument units
ArgumentsBundle.EdgeAffinity - Annotation Type in com.actinarium.rhythm
Type definition for screen edge that a keyline or pattern must be attached to.

C

Columns - Class in com.actinarium.rhythm.layer
A layer that divides provided bounds into arbitrary number of equally wide columns and then draws nested layers in each column.
Columns(int) - Constructor for class com.actinarium.rhythm.layer.Columns
Create spec layer that will evenly divide current bounds in given number of columns and then draw all child layers in each
Columns(int, int) - Constructor for class com.actinarium.rhythm.layer.Columns
Create spec layer that will evenly divide current bounds in given number of columns and then draw all child layers in each
Columns() - Constructor for class com.actinarium.rhythm.layer.Columns
Create spec layer that will evenly divide current bounds in given number of columns and then draw all child layers in each.
Columns.Factory - Class in com.actinarium.rhythm.layer
A default factory that creates new Columns layers from config lines according to the docs
com.actinarium.rhythm - package com.actinarium.rhythm
 
com.actinarium.rhythm.internal - package com.actinarium.rhythm.internal
 
com.actinarium.rhythm.layer - package com.actinarium.rhythm.layer
 
createDefault(Context) - Static method in class com.actinarium.rhythm.RhythmOverlayInflater
Create a new instance of default overlay inflater.

D

DECIMAL_FORMAT - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
DEFAULT_BACKGROUND - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
DEFAULT_FILL_COLOR - Static variable in class com.actinarium.rhythm.layer.Fill
 
DEFAULT_FILL_COLOR - Static variable in class com.actinarium.rhythm.layer.RatioKeyline
 
DEFAULT_GRID_COLOR - Static variable in class com.actinarium.rhythm.layer.GridLines
 
DEFAULT_KEYLINE_COLOR - Static variable in class com.actinarium.rhythm.layer.Keyline
 
DEFAULT_LABEL_HEIGHT - Static variable in class com.actinarium.rhythm.layer.RatioKeyline
 
DEFAULT_SCALE_FACTOR - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
DEFAULT_TEXT_COLOR - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
DEFAULT_TEXT_COLOR - Static variable in class com.actinarium.rhythm.layer.RatioKeyline
 
DEFAULT_TEXT_SIZE - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
DEFAULT_TEXT_SIZE - Static variable in class com.actinarium.rhythm.layer.RatioKeyline
 
DEFAULT_THICKNESS - Static variable in class com.actinarium.rhythm.layer.GridLines
Default grid line thickness (1px)
DEFAULT_THICKNESS - Static variable in class com.actinarium.rhythm.layer.Keyline
Default keyline thickness (2px)
DEFAULT_THICKNESS - Static variable in class com.actinarium.rhythm.layer.RatioKeyline
 
DIMEN_VALUE_PATTERN - Static variable in class com.actinarium.rhythm.SimpleArgumentsBundle
 
DimensionsLabel - Class in com.actinarium.rhythm.layer
A layer that draws a small box with dimensions of the current view.
DimensionsLabel() - Constructor for class com.actinarium.rhythm.layer.DimensionsLabel
 
DimensionsLabel.Factory - Class in com.actinarium.rhythm.layer
A default factory that creates new DimensionsLabel layers from config lines according to the docs
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.AbstractSpecLayerGroup
 
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.layer.Columns
 
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.layer.DimensionsLabel
 
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.layer.Fill
 
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.layer.GridLines
 
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.layer.Inset
 
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.layer.Keyline
 
draw(Canvas, Rect) - Method in class com.actinarium.rhythm.layer.RatioKeyline
 
draw(Canvas) - Method in class com.actinarium.rhythm.RhythmDrawable
 
draw(Canvas, Rect) - Method in interface com.actinarium.rhythm.RhythmSpecLayer
Draw itself to the provided canvas within provided bounds according to internal configuration (if any)

E

equals(Object) - Method in class com.actinarium.rhythm.MagicVariablesArgumentsBundle
 
equals(Object) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 
ESTIMATED_AVG_LAYERS - Static variable in class com.actinarium.rhythm.AbstractSpecLayerGroup
 

F

Factory() - Constructor for class com.actinarium.rhythm.layer.Columns.Factory
 
Factory() - Constructor for class com.actinarium.rhythm.layer.DimensionsLabel.Factory
 
Factory() - Constructor for class com.actinarium.rhythm.layer.Fill.Factory
 
Factory() - Constructor for class com.actinarium.rhythm.layer.GridLines.Factory
 
Factory() - Constructor for class com.actinarium.rhythm.layer.Inset.Factory
 
Factory() - Constructor for class com.actinarium.rhythm.layer.Keyline.Factory
 
Factory() - Constructor for class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
Fill - Class in com.actinarium.rhythm.layer
A layer that fills all provided area with solid color.
Fill() - Constructor for class com.actinarium.rhythm.layer.Fill
Create a layer that fills current bounds with solid color
Fill.Factory - Class in com.actinarium.rhythm.layer
A default factory that creates new Fill layers from config lines according to the docs

G

getArgumentsBundle() - Method in class com.actinarium.rhythm.RhythmOverlayInflater.LayerConfig
Get the configuration of this layer presented by an ArgumentsBundle object
getBoolean(String, boolean) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get boolean argument.
getBoolean(String, boolean) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 
getColor(String, int) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get argument value as color integer with fallback to default value if argument is missing.
getColor(String, int) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 
getDecorated() - Method in class com.actinarium.rhythm.RhythmDrawable
Get decorated drawable (the one drawn under the overlay) if present
getDimensionPixelExact(String, float) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get dimension argument value as pixels with possible fallback to default value if argument is missing or invalid.
getDimensionPixelExact(String, float) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get dimension argument value as pixels with possible fallback to default value if argument is missing or invalid.
getDimensionPixelOffset(String, int) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get dimension argument value as pixels with possible fallback to default value if argument is missing or invalid.
getDimensionPixelOffset(String, int) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get dimension argument value as pixels with possible fallback to default value if argument is missing or invalid.
getDimensionPixelRaw(float, int, DisplayMetrics) - Static method in class com.actinarium.rhythm.SimpleArgumentsBundle
Convert complex dimension value of provided units into pixels.
getDimensionPixelSize(String, int) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get dimension argument value as pixels with possible fallback to default value if argument is missing or invalid.
getDimensionPixelSize(String, int) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get dimension argument value as pixels with possible fallback to default value if argument is missing or invalid.
getDimensionUnits(String) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get the units of a dimension argument.
getDimensionUnits(String) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get the units of a dimension argument.
getDimensionValue(String, float) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get raw numeric value from dimension argument disregarding units and NOT performing any conversion to pixels.
getDimensionValue(String, float) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get raw numeric value from dimension argument disregarding units and NOT performing any conversion to pixels.
getDisplayMetrics() - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get display metrics associated with this arguments bundle.
getDisplayMetrics() - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get display metrics associated with this arguments bundle.
getEdgeAffinity(String, int) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get argument as an ArgumentsBundle.EdgeAffinity constant, which can be either Gravity.TOP, Gravity.LEFT, Gravity.RIGHT, or Gravity.BOTTOM, with fallback to default value if argument is missing or invalid.
getEdgeAffinity(String, int) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 
getFloat(String, float) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get argument value as float with fallback to default value if argument is missing.
getFloat(String, float) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.layer.Columns.Factory
 
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.layer.DimensionsLabel.Factory
 
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.layer.Fill.Factory
 
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.layer.GridLines.Factory
 
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.layer.Inset.Factory
 
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.layer.Keyline.Factory
 
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
getForArguments(ArgumentsBundle) - Method in interface com.actinarium.rhythm.RhythmSpecLayerFactory
Create and configure a spec layer from provided arguments, or get previously created one from cache if it can be safely reused.
getForArguments(ArgumentsBundle) - Method in class com.actinarium.rhythm.SimpleCacheFactory
Returns layer for this configuration from cache, or creates a new one via decorated factory if not found in cache
getGravity(String, int) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get argument value as a gravity value (a combination of Gravity constants) with fallback to default value if argument is missing.
getGravity(String, int) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get argument value as a gravity value (a combination of Gravity constants) with fallback to default value if argument is missing.
getIndent() - Method in class com.actinarium.rhythm.RhythmOverlayInflater.LayerConfig
Get the number of spaces this config line was indented with.
getInt(String, int) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get argument value as integer with fallback to default value if argument is missing.
getInt(String, int) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 
getLayerType() - Method in class com.actinarium.rhythm.RhythmOverlayInflater.LayerConfig
Get the name of spec layer to inflate with these arguments
getMessage() - Method in exception com.actinarium.rhythm.RhythmInflationException
 
getOpacity() - Method in class com.actinarium.rhythm.RhythmDrawable
 
getOverlay() - Method in class com.actinarium.rhythm.RhythmDrawable
Get current overlay
getPadding(Rect) - Method in class com.actinarium.rhythm.RhythmDrawable
 
getState() - Method in class com.actinarium.rhythm.RhythmDrawable
 
getString(String) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get argument value as a string.
getString(String, String) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Get argument value as a string with fallback to default value if argument is missing.
getString(String) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get argument value as a string.
getString(String, String) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Get argument value as a string with fallback to default value if argument is missing.
getTitle() - Method in class com.actinarium.rhythm.RhythmOverlay
Get overlay title
GridLines - Class in com.actinarium.rhythm.layer
A spec layer for horizontal or vertical grid lines (not both at once!), repeating at a fixed step.
GridLines(int, float) - Constructor for class com.actinarium.rhythm.layer.GridLines
Create a layer that draws horizontal or vertical grid lines.
GridLines() - Constructor for class com.actinarium.rhythm.layer.GridLines
Create a spec layer that displays dimensions label.
GridLines.Factory - Class in com.actinarium.rhythm.layer
A default factory that creates new GridLines layers from config lines according to the docs

H

hasArgument(String) - Method in interface com.actinarium.rhythm.ArgumentsBundle
Test if there's an argument with given key in the bundle, even if the value is null.
hasArgument(String) - Method in class com.actinarium.rhythm.MagicVariablesArgumentsBundle
Test if there's an argument with given key in the bundle, even if the value is null.
hasArgument(String) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 
hashCode() - Method in class com.actinarium.rhythm.MagicVariablesArgumentsBundle
 
hashCode() - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
 

I

inflate(int) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Inflate a Rhythm configuration file into a list of RhythmOverlays, which you can then assign to a group, or make sub-lists of and assign to different groups.
inflate(String) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Same as RhythmOverlayInflater.inflate(int), but accepts a string for the whole overlay configuration file.
inflate(List<String>) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Same as RhythmOverlayInflater.inflate(int), but accepts the configuration file already split in lines as strings.
inflateLayer(String, Map<String, String>) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Inflate an individual layer from raw configuration string and optional variables
inflateLayerInternal(RhythmOverlayInflater.LayerConfig, int) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Inflate an individual layer from already parsed layer configuration.
inflateOverlay(String) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Inflate a single overlay from overlay configuration string according to the syntax spec.
inflateOverlay(String, Map<String, String>) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Inflate a single overlay from overlay configuration string according to the syntax spec.
inflateOverlay(List<String>) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Inflate a single overlay from overlay configuration already presented as separate lines.
inflateOverlay(List<String>, Map<String, String>) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Inflate a single overlay from overlay configuration already presented as separate lines.
inflateOverlayInternal(List<String>, Map<String, String>, int) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Internal method for inflating an overlay from separate config lines, with provided global variables map, and possibly as a part of an overlay config file.
Inset - Class in com.actinarium.rhythm.layer
A group that clips and/or insets its child layers.
Inset() - Constructor for class com.actinarium.rhythm.layer.Inset
Create a layer group that clips and/or insets its child layers
Inset(int) - Constructor for class com.actinarium.rhythm.layer.Inset
Create a layer group that clips and/or insets its child layers
Inset.Factory - Class in com.actinarium.rhythm.layer
A default factory that creates new Inset layers from config lines according to the docs
Inset.Mode - Annotation Type in com.actinarium.rhythm.layer
Type definition for inset group type
isEmptyOrComment(String) - Static method in class com.actinarium.rhythm.RhythmOverlayInflater
Utility method that determines whether the line is empty or a comment one (starts with //) and thus should be ignored.
isStateful() - Method in class com.actinarium.rhythm.RhythmDrawable
 

K

Keyline - Class in com.actinarium.rhythm.layer
A layer that draws a horizontal or vertical full-bleed keyline at the specified distance from the specified edge of a view.
Keyline(int, int) - Constructor for class com.actinarium.rhythm.layer.Keyline
Create a layer that draws a horizontal or vertical keyline at a specified distance from required edge
Keyline() - Constructor for class com.actinarium.rhythm.layer.Keyline
Create a layer that draws a horizontal or vertical keyline at a specified distance from required edge.
Keyline.Factory - Class in com.actinarium.rhythm.layer
A default factory that creates new Keyline layers from config lines according to the docs

L

LAYER_TYPE - Static variable in class com.actinarium.rhythm.layer.Columns.Factory
 
LAYER_TYPE - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel.Factory
 
LAYER_TYPE - Static variable in class com.actinarium.rhythm.layer.Fill.Factory
 
LAYER_TYPE - Static variable in class com.actinarium.rhythm.layer.GridLines.Factory
 
LAYER_TYPE - Static variable in class com.actinarium.rhythm.layer.Inset.Factory
 
LAYER_TYPE - Static variable in class com.actinarium.rhythm.layer.Keyline.Factory
 
LAYER_TYPE - Static variable in class com.actinarium.rhythm.layer.RatioKeyline.Factory
 
LayerConfig(String, int, ArgumentsBundle) - Constructor for class com.actinarium.rhythm.RhythmOverlayInflater.LayerConfig
Create layer config object for layer of given type, with known indent, and with pre-filled arguments bag

M

MagicVariablesArgumentsBundle - Class in com.actinarium.rhythm
An implementation of ArgumentsBundle that utilizes “magic variables” mechanism to resolve missing layer arguments: if an argument is not explicitly specified, it tries resolving it from a variable named in a special pattern @{layer_name}_{arg_name} where dashes are replaced with underscores.
MagicVariablesArgumentsBundle(Map<String, String>, Map<String, String>, String, DisplayMetrics) - Constructor for class com.actinarium.rhythm.MagicVariablesArgumentsBundle
Create a new simple arguments bundle implementation from provided key->value map.
mAlignOutside - Variable in class com.actinarium.rhythm.layer.Keyline
 
mAreMagicVariablesEnabled - Variable in class com.actinarium.rhythm.RhythmOverlayInflater
 
mArguments - Variable in class com.actinarium.rhythm.SimpleArgumentsBundle
 
mArgumentsBundle - Variable in class com.actinarium.rhythm.RhythmOverlayInflater.LayerConfig
 
mBackgroundPaint - Variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
mBackgroundPaint - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mBottom - Variable in class com.actinarium.rhythm.layer.Inset
 
mColumnCount - Variable in class com.actinarium.rhythm.layer.Columns
 
mContext - Variable in class com.actinarium.rhythm.RhythmOverlayInflater
 
mDecorated - Variable in class com.actinarium.rhythm.RhythmDrawable
 
mDisplayMetrics - Variable in class com.actinarium.rhythm.RhythmOverlayInflater
 
mDistance - Variable in class com.actinarium.rhythm.layer.Keyline
 
mEdgeAffinity - Variable in class com.actinarium.rhythm.layer.GridLines
 
mEdgeAffinity - Variable in class com.actinarium.rhythm.layer.Keyline
 
mFactories - Variable in class com.actinarium.rhythm.RhythmOverlayInflater
 
mGravity - Variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
mHeight - Variable in class com.actinarium.rhythm.layer.Inset
 
mIndent - Variable in class com.actinarium.rhythm.RhythmOverlayInflater.LayerConfig
 
mInsetRect - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsBottomPercent - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsBottomSet - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsHeightPercent - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsHeightSet - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsLeftPercent - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsLeftSet - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsRightPercent - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsRightSet - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsTopPercent - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsTopSet - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsWidthPercent - Variable in class com.actinarium.rhythm.layer.Inset
 
mIsWidthSet - Variable in class com.actinarium.rhythm.layer.Inset
 
mLabelHeight - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mLabelPath - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mLabelRectWidth - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mLabelSideWidth - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mLayerNamePrefix - Variable in class com.actinarium.rhythm.MagicVariablesArgumentsBundle
 
mLayers - Variable in class com.actinarium.rhythm.AbstractSpecLayerGroup
 
mLayerType - Variable in class com.actinarium.rhythm.RhythmOverlayInflater.LayerConfig
 
mLeft - Variable in class com.actinarium.rhythm.layer.Inset
 
mLimit - Variable in class com.actinarium.rhythm.layer.GridLines
 
mMetrics - Variable in class com.actinarium.rhythm.SimpleArgumentsBundle
 
mMode - Variable in class com.actinarium.rhythm.layer.Inset
 
MODE_CLIP_ONLY - Static variable in class com.actinarium.rhythm.layer.Inset
Clip the group according to inset rect but keep the coordinates.
MODE_DEFAULT - Static variable in class com.actinarium.rhythm.layer.Inset
Inset the bounds and clip the overlay.
MODE_NO_CLIP - Static variable in class com.actinarium.rhythm.layer.Inset
Inset the bounds but don't clip drawing to the overlay.
mOffset - Variable in class com.actinarium.rhythm.layer.GridLines
 
mOverlay - Variable in class com.actinarium.rhythm.RhythmDrawable
 
mPaint - Variable in class com.actinarium.rhythm.layer.Fill
 
mPaint - Variable in class com.actinarium.rhythm.layer.GridLines
 
mPaint - Variable in class com.actinarium.rhythm.layer.Keyline
 
mRatioX - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mRatioY - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mRight - Variable in class com.actinarium.rhythm.layer.Inset
 
mScaleFactor - Variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
mStep - Variable in class com.actinarium.rhythm.layer.GridLines
 
mTempRect - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mText - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mTextPaint - Variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
mTextPaint - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mThickness - Variable in class com.actinarium.rhythm.layer.GridLines
 
mThickness - Variable in class com.actinarium.rhythm.layer.Keyline
 
mThickness - Variable in class com.actinarium.rhythm.layer.RatioKeyline
 
mTitle - Variable in class com.actinarium.rhythm.RhythmOverlay
 
mTop - Variable in class com.actinarium.rhythm.layer.Inset
 
MULTIPLY - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
mVariables - Variable in class com.actinarium.rhythm.MagicVariablesArgumentsBundle
 
mWidth - Variable in class com.actinarium.rhythm.layer.Inset
 

O

onBoundsChange(Rect) - Method in class com.actinarium.rhythm.RhythmDrawable
 
ONE_FOURTH - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
ONE_HALF - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
ONE_THIRD - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
onLevelChange(int) - Method in class com.actinarium.rhythm.RhythmDrawable
 
onStateChange(int[]) - Method in class com.actinarium.rhythm.RhythmDrawable
 

P

parseConfigInternal(String, Map<String, String>, int) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Parses a line with single layer configuration.
PATTERN_ARGUMENTS - Static variable in class com.actinarium.rhythm.RhythmOverlayInflater
A regex to search for arguments in configuration string by a following template: key[=value]
PATTERN_VARIABLES - Static variable in class com.actinarium.rhythm.RhythmOverlayInflater
A regex to validate and parse variables in configuration string by a following template: @variable=value
prettyPrintDips(int, float) - Static method in class com.actinarium.rhythm.layer.DimensionsLabel
Sophisticated conversion of pixels to dips with the use of vulgar fractions (to save screen space)

R

RatioKeyline - Class in com.actinarium.rhythm.layer
A single horizontal keyline whose distance from the top is calculated from the width of current bounds and given aspect ratio.
RatioKeyline(int, int, DisplayMetrics) - Constructor for class com.actinarium.rhythm.layer.RatioKeyline
 
RatioKeyline(DisplayMetrics) - Constructor for class com.actinarium.rhythm.layer.RatioKeyline
 
RatioKeyline.Factory - Class in com.actinarium.rhythm.layer
A default factory that creates new RatioKeyline layers from config lines according to the docs
ReaderUtils - Class in com.actinarium.rhythm.internal
Utility class that contains methods for reading data from input streams and raw resources
readLines(InputStream) - Static method in class com.actinarium.rhythm.internal.ReaderUtils
Reads lines from input stream.
readLines(Context, int) - Static method in class com.actinarium.rhythm.internal.ReaderUtils
Reads lines from given raw resource.
recalculateInsetRect(Rect) - Method in class com.actinarium.rhythm.layer.Inset
Update the inset bounds based on provided outer bounds and this layer's state
registerFactory(String, RhythmSpecLayerFactory) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Register a factory for provided layer type.
resolveArgument(String) - Method in class com.actinarium.rhythm.MagicVariablesArgumentsBundle
Resolves argument value from the bundle.
resolveArgument(String) - Method in class com.actinarium.rhythm.SimpleArgumentsBundle
Resolves argument value from the bundle.
resolveVariableInternal(Map<String, String>, String, int) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Resolve variable value: if it's a reference to another variable (i.e.
RhythmDrawable - Class in com.actinarium.rhythm
Renders the currently assigned RhythmOverlay and serves as an adapter between Rhythm (which sets the overlay to draw by this drawable at the moment) and the views where the overlay (grids, keylines etc) must be applied.
RhythmDrawable(RhythmOverlay) - Constructor for class com.actinarium.rhythm.RhythmDrawable
Create a Rhythm drawable for given Rhythm overlay.
RhythmInflationException - Exception in com.actinarium.rhythm
A runtime exception to be thrown when there is an error inflating declarative configuration, usually because of syntax error or violated argument value constraints.
RhythmInflationException() - Constructor for exception com.actinarium.rhythm.RhythmInflationException
 
RhythmInflationException(String) - Constructor for exception com.actinarium.rhythm.RhythmInflationException
 
RhythmInflationException(String, Throwable) - Constructor for exception com.actinarium.rhythm.RhythmInflationException
 
RhythmInflationException(Throwable) - Constructor for exception com.actinarium.rhythm.RhythmInflationException
 
RhythmOverlay - Class in com.actinarium.rhythm
Defines a single overlay configuration, i.e.
RhythmOverlay() - Constructor for class com.actinarium.rhythm.RhythmOverlay
Create a new overlay
RhythmOverlay(int) - Constructor for class com.actinarium.rhythm.RhythmOverlay
Create a new overlay with initial capacity
RhythmOverlayInflater - Class in com.actinarium.rhythm
A default inflater that creates RhythmOverlays from text configuration using registered layer factories.
RhythmOverlayInflater(Context) - Constructor for class com.actinarium.rhythm.RhythmOverlayInflater
Create a new instance of overlay inflater with no factories registered.
RhythmOverlayInflater.LayerConfig - Class in com.actinarium.rhythm
A spec layer descriptor holding arguments and metadata, used internally by RhythmOverlayInflater to carry values needed to inflate individual layers and their hierarchies.
RhythmSpecLayer - Interface in com.actinarium.rhythm
Spec layer is a descriptor of a granular piece of overlay (e.g.
RhythmSpecLayerFactory<T extends RhythmSpecLayer> - Interface in com.actinarium.rhythm
Interface for a factory that can instantiate a RhythmSpecLayer implementation from provided ArgumentsBundle.
RhythmSpecLayerParent - Interface in com.actinarium.rhythm
An object that can contain other spec layers.
RuntimeIOException - Exception in com.actinarium.rhythm.internal
A runtime counterpart of IOException thrown when the library cannot operate on provided data stream.
RuntimeIOException() - Constructor for exception com.actinarium.rhythm.internal.RuntimeIOException
 
RuntimeIOException(String) - Constructor for exception com.actinarium.rhythm.internal.RuntimeIOException
 
RuntimeIOException(Throwable) - Constructor for exception com.actinarium.rhythm.internal.RuntimeIOException
 
RuntimeIOException(String, Throwable) - Constructor for exception com.actinarium.rhythm.internal.RuntimeIOException
 

S

setAlignOutside(boolean) - Method in class com.actinarium.rhythm.layer.Keyline
Set keyline alignment.
setAlpha(int) - Method in class com.actinarium.rhythm.RhythmDrawable
 
setBackgroundColor(int) - Method in class com.actinarium.rhythm.layer.DimensionsLabel
Set label background color
setBottom(int, boolean) - Method in class com.actinarium.rhythm.layer.Inset
Set bottom inset
setColor(int) - Method in class com.actinarium.rhythm.layer.Fill
Set fill color
setColor(int) - Method in class com.actinarium.rhythm.layer.GridLines
Set grid line color
setColor(int) - Method in class com.actinarium.rhythm.layer.Keyline
Set keyline color
setColorFilter(ColorFilter) - Method in class com.actinarium.rhythm.RhythmDrawable
 
setColumnCount(int) - Method in class com.actinarium.rhythm.layer.Columns
Set the number of columns
setDecorated(Drawable) - Method in class com.actinarium.rhythm.RhythmDrawable
Set a Drawable to decorate.
setDistance(int) - Method in class com.actinarium.rhythm.layer.Keyline
Set the distance of the keyline from specified edge
setEdgeAffinity(int) - Method in class com.actinarium.rhythm.layer.GridLines
Set edge affinity of the grid
setEdgeAffinity(int) - Method in class com.actinarium.rhythm.layer.Keyline
Set edge affinity of the keyline
setGravity(int) - Method in class com.actinarium.rhythm.layer.DimensionsLabel
Set label gravity.
setHeight(int, boolean) - Method in class com.actinarium.rhythm.layer.Inset
Set height.
setKeylineColor(int) - Method in class com.actinarium.rhythm.layer.RatioKeyline
Set the color of ratio keyline and label background
setLeft(int, boolean) - Method in class com.actinarium.rhythm.layer.Inset
Set left inset
setLimit(int) - Method in class com.actinarium.rhythm.layer.GridLines
Set the maximum number of steps to outline, respecting layer’s gravity (i.e.
setLineNumber(int) - Method in exception com.actinarium.rhythm.RhythmInflationException
Set the index of the line (0-based) where the error happened.
setMagicVariablesEnabled(boolean) - Method in class com.actinarium.rhythm.RhythmOverlayInflater
Enable or disable “magic variables” support in this inflater instance.
setMode(int) - Method in class com.actinarium.rhythm.layer.Inset
Set inset mode — whether the group should also clip the children, translate the coordinates, or both
setOffset(int) - Method in class com.actinarium.rhythm.layer.GridLines
Set additional grid offset.
setOverlay(RhythmOverlay) - Method in class com.actinarium.rhythm.RhythmDrawable
Set a RhythmOverlay for this drawable.
setRatio(int, int) - Method in class com.actinarium.rhythm.layer.RatioKeyline
Set ratio of the box this keyline should define, in form of two terms
setRight(int, boolean) - Method in class com.actinarium.rhythm.layer.Inset
Set right inset
setScaleFactor(float) - Method in class com.actinarium.rhythm.layer.DimensionsLabel
Set a scale factor that will be applied to width and height of provided bounds
setState(int[]) - Method in class com.actinarium.rhythm.RhythmDrawable
 
setStep(float) - Method in class com.actinarium.rhythm.layer.GridLines
Set the step of grid lines
setText(String) - Method in class com.actinarium.rhythm.layer.RatioKeyline
Set arbitrary label text to this ratio keyline.
setTextColor(int) - Method in class com.actinarium.rhythm.layer.DimensionsLabel
Set the color of the label text itself
setTextColor(int) - Method in class com.actinarium.rhythm.layer.RatioKeyline
Set ratio keyline label text color
setTextSize(float) - Method in class com.actinarium.rhythm.layer.DimensionsLabel
Set text size
setThickness(int) - Method in class com.actinarium.rhythm.layer.GridLines
Set grid line thickness
setThickness(int) - Method in class com.actinarium.rhythm.layer.Keyline
Set keyline thickness
setThickness(int) - Method in class com.actinarium.rhythm.layer.RatioKeyline
Set ratio keyline thickness
setTitle(String) - Method in class com.actinarium.rhythm.RhythmOverlay
Set the title for this overlay.
setTop(int, boolean) - Method in class com.actinarium.rhythm.layer.Inset
Set top inset
setWidth(int, boolean) - Method in class com.actinarium.rhythm.layer.Inset
Set width.
SimpleArgumentsBundle - Class in com.actinarium.rhythm
A basic implementation of ArgumentsBundle, which stores all arguments simply as a String->String key-value map and parses them into required types when accessed by respective getter methods (meaning it also fails lazily).
SimpleArgumentsBundle(Map<String, String>, DisplayMetrics) - Constructor for class com.actinarium.rhythm.SimpleArgumentsBundle
Create a new simple arguments bundle implementation from provided key->value map.
SimpleCacheFactory<T extends RhythmSpecLayer> - Class in com.actinarium.rhythm
A decorator for a spec layer factory that performs simple caching of previously inflated layers
SimpleCacheFactory(RhythmSpecLayerFactory<T>) - Constructor for class com.actinarium.rhythm.SimpleCacheFactory
 
size() - Method in class com.actinarium.rhythm.AbstractSpecLayerGroup
Return the number of children in this layer group

T

THREE_FOURTHS - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 
toString() - Method in class com.actinarium.rhythm.RhythmOverlay
 
TWO_THIRDS - Static variable in class com.actinarium.rhythm.layer.DimensionsLabel
 

U

UNITS_DP - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_IN - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_MM - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_NULL - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_NUMBER - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_PERCENT - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_PERCENT - Static variable in class com.actinarium.rhythm.layer.Inset
Dimension specified in percent of container
UNITS_PT - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_PX - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
UNITS_PX - Static variable in class com.actinarium.rhythm.layer.Inset
Dimension specified in pixels
UNITS_SP - Static variable in interface com.actinarium.rhythm.ArgumentsBundle
 
A C D E F G H I K L M O P R S T U 
Skip navigation links