public class

TextColumnStyle

extends Object
java.lang.Object
   ↳ com.shinobicontrols.grids.supplement.TextColumnStyle

Class Overview

A convenience style object that is used to set the style of various items within the TextColumnSpec. It can optionally have a OnStyleChangedListener which will be notified whenever a style property is changed.

Summary

Public Constructors
TextColumnStyle()
Public Methods
float getAlpha()

Returns the Alpha value that is applied to each item in the Column this TextColumnStyle styles.

int getBackgroundColor()

Returns the BackgroundColor that is applied to each item in the Column this TextColumnStyle styles.

int getGravity()

Returns the Gravity that is applied to each item in the Column this TextColumnStyle styles.

int getPaddingBottom()

Returns the bottom padding that is applied to each item in the Column this TextColumnStyle styles.

int getPaddingLeft()

Returns the left padding that is applied to each item in the Column this TextColumnStyle styles.

int getPaddingRight()

Returns the right padding that is applied to each item in the Column this TextColumnStyle styles.

int getPaddingTop()

Returns the top padding that is applied to each item in the Column this TextColumnStyle styles.

int getTextColor()

Returns the TextColor that is applied to each item in the Column this TextColumnStyle styles.

float getTextSize()

Returns the text size, in pixels, that is applied to each item in the Column this TextColumnStyle styles.

Typeface getTypeface()

Returns the Typeface that is applied to each item in the Column this TextColumnStyle styles.

void setAlpha(float alpha)

Sets the Alpha value that is applied to each item in the Column this TextColumnStyle styles.

void setBackgroundColor(int backgroundColor)

Sets the BackgroundColor that is applied to each item in the Column this TextColumnStyle styles.

void setGravity(int gravity)

Sets the Gravity that is applied to each item in the Column this TextColumnStyle styles.

void setOnStyleChangedListener(OnStyleChangedListener listener)

Sets the OnStyleChangedListener that responds to style changes in the grid.

void setPadding(int paddingLeft, int paddingTop, int paddingRight, int paddingBottom)

Sets the padding that is applied to each item in the Column this TextColumnStyle styles.

void setTextColor(int textColor)

Sets the TextColor that is applied to each item in the Column this TextColumnStyle styles.

void setTextSize(float textSize)

Sets the text size, in pixels, that is applied to each item in the Column this TextColumnStyle styles.

void setTypeface(Typeface typeface)

Sets the Typeface that is applied to each item in the Column this TextColumnStyle styles.

[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TextColumnStyle ()

Public Methods

public float getAlpha ()

Returns the Alpha value that is applied to each item in the Column this TextColumnStyle styles. This is a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.

By default this is 1.0f.

Returns
See Also

public int getBackgroundColor ()

Returns the BackgroundColor that is applied to each item in the Column this TextColumnStyle styles.

Returns

public int getGravity ()

Returns the Gravity that is applied to each item in the Column this TextColumnStyle styles.

Returns
See Also

public int getPaddingBottom ()

Returns the bottom padding that is applied to each item in the Column this TextColumnStyle styles.

Returns

public int getPaddingLeft ()

Returns the left padding that is applied to each item in the Column this TextColumnStyle styles.

Returns

public int getPaddingRight ()

Returns the right padding that is applied to each item in the Column this TextColumnStyle styles.

Returns

public int getPaddingTop ()

Returns the top padding that is applied to each item in the Column this TextColumnStyle styles.

Returns

public int getTextColor ()

Returns the TextColor that is applied to each item in the Column this TextColumnStyle styles.

Returns

public float getTextSize ()

Returns the text size, in pixels, that is applied to each item in the Column this TextColumnStyle styles.

Returns

public Typeface getTypeface ()

Returns the Typeface that is applied to each item in the Column this TextColumnStyle styles. May be null.

Returns

public void setAlpha (float alpha)

Sets the Alpha value that is applied to each item in the Column this TextColumnStyle styles. This is a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.

By default this is 1.0f.

Parameters
alpha the alpha value to set
See Also

public void setBackgroundColor (int backgroundColor)

Sets the BackgroundColor that is applied to each item in the Column this TextColumnStyle styles.

Setting this value will take precedence over, and override, any equivalent value in a ShinobiGridTheme set on the grid.

Parameters
backgroundColor the background color to set

public void setGravity (int gravity)

Sets the Gravity that is applied to each item in the Column this TextColumnStyle styles.

Setting this value will take precedence over, and override, any equivalent value in a ShinobiGridTheme set on the grid.

Parameters
gravity the gravity to set
See Also

public void setOnStyleChangedListener (OnStyleChangedListener listener)

Sets the OnStyleChangedListener that responds to style changes in the grid.

Parameters
listener the listener that responds to style changes

public void setPadding (int paddingLeft, int paddingTop, int paddingRight, int paddingBottom)

Sets the padding that is applied to each item in the Column this TextColumnStyle styles.

Parameters
paddingLeft the left padding to set
paddingTop the top padding to set
paddingRight the right padding to set
paddingBottom the bottom padding to set

public void setTextColor (int textColor)

Sets the TextColor that is applied to each item in the Column this TextColumnStyle styles.

Setting this value will take precedence over, and override, any equivalent value in a ShinobiGridTheme set on the grid.

Parameters
textColor the text color to set
See Also

public void setTextSize (float textSize)

Sets the text size, in pixels, that is applied to each item in the Column this TextColumnStyle styles.

Setting this value will take precedence over, and override, any equivalent value in a ShinobiGridTheme set on the grid.

Parameters
textSize the text size, in pixels to set
See Also

public void setTypeface (Typeface typeface)

Sets the Typeface that is applied to each item in the Column this TextColumnStyle styles. May be null.

Parameters
typeface the typeface to set
See Also