public class

CrosshairStyle

extends Object
java.lang.Object
   ↳ com.shinobicontrols.charts.CrosshairStyle

Class Overview

Visual style properties for a chart's Crosshair. If you make any styling changes after the chart has been displayed, you should call chart.redrawChart().

Summary

Public Constructors
CrosshairStyle()
Public Methods
int getLineColor()
Returns the int representation of the color of the crosshair lines that extend from the target circle to the axis edges.
float getLineWidth()
Returns the width of the crosshair lines that extend from the target circle to the axis edges.
int getTooltipBackgroundColor()
Returns the int representation of the background color of the tooltip
int getTooltipBorderColor()
Returns the int representation of the color for the tooltip's border.
float getTooltipBorderWidth()
Returns the width of the tooltip's border, in device independent pixels.
float getTooltipCornerRadius()
Returns the corner radius of the tooltip, in device independent pixels.
int getTooltipLabelBackgroundColor()
Returns the int representation of the background color of the label in the tooltip.
float getTooltipPadding()
Returns the amount of padding in the crosshair's tooltip, in device independent pixels.
int getTooltipTextColor()
Returns the int representation of the color of the text in the tooltip.
float getTooltipTextSize()
Returns the size of the text in the tooltip, in scaled pixels.
Typeface getTooltipTypeface()
Returns the android.graphics.Typeface of the text in the tooltip.
void setLineColor(int lineColor)
Sets the color of the crosshair lines that extend from the target circle to the axis edges.
void setLineWidth(float lineWidth)
Sets the width of the crosshair lines that extend from the target circle to the axis edges.
void setTooltipBackgroundColor(int tooltipBackgroundColor)
Sets the background color for the tooltip
void setTooltipBorderColor(int tooltipBorderColor)
Sets the color for the tooltip's border.
void setTooltipBorderWidth(float tooltipBorderWidth)
Sets the width for the tooltip's border, in device independent pixels.
void setTooltipCornerRadius(float tooltipCornerRadius)
Sets the corner radius for the tooltip, in device independent pixels.
void setTooltipLabelBackgroundColor(int tooltipLabelBackgroundColor)
Sets the background color for the label in the tooltip.
void setTooltipPadding(float tooltipPadding)
Sets the amount of padding for the crosshair's tooltip, in device independent pixels.
void setTooltipTextColor(int tooltipTextColor)
Sets the color for the text in the tooltip.
void setTooltipTextSize(float tooltipTextSize)
Sets the size for the text in the tooltip, in scaled pixels.
void setTooltipTypeface(Typeface tooltipTypeface)
Sets the android.graphics.Typeface for the text in the tooltip.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CrosshairStyle ()

Public Methods

public int getLineColor ()

Returns the int representation of the color of the crosshair lines that extend from the target circle to the axis edges.

Returns
  • the int representation of the color of the crosshair lines

public float getLineWidth ()

Returns the width of the crosshair lines that extend from the target circle to the axis edges. In device independent pixels.

Returns
  • the width of the crosshair lines

public int getTooltipBackgroundColor ()

Returns the int representation of the background color of the tooltip

Returns
  • the int representation of the background color of the tooltip

public int getTooltipBorderColor ()

Returns the int representation of the color for the tooltip's border.

Returns
  • the int representation of the color for the tooltip's border

public float getTooltipBorderWidth ()

Returns the width of the tooltip's border, in device independent pixels.

Returns
  • the width of the tooltip's border, in device independent pixels

public float getTooltipCornerRadius ()

Returns the corner radius of the tooltip, in device independent pixels.

Returns
  • the corner radius of the tooltip, in device independent pixels

public int getTooltipLabelBackgroundColor ()

Returns the int representation of the background color of the label in the tooltip.

Returns
  • the int representation of the background color of the label in the tooltip

public float getTooltipPadding ()

Returns the amount of padding in the crosshair's tooltip, in device independent pixels.

Returns
  • the amount of padding in the crosshair's tooltip, in device independent pixels

public int getTooltipTextColor ()

Returns the int representation of the color of the text in the tooltip.

Returns
  • the int representation of the color of the text in the tooltip

public float getTooltipTextSize ()

Returns the size of the text in the tooltip, in scaled pixels.

Returns
  • the tooltipTextSize the size of the text in the tooltip, in scaled pixels

public Typeface getTooltipTypeface ()

Returns the android.graphics.Typeface of the text in the tooltip.

Returns
  • the typeface of the text in the tooltip

public void setLineColor (int lineColor)

Sets the color of the crosshair lines that extend from the target circle to the axis edges.

Parameters
lineColor the int representation of the color for the crosshair lines
See Also

public void setLineWidth (float lineWidth)

Sets the width of the crosshair lines that extend from the target circle to the axis edges. In device independent pixels.

Parameters
lineWidth the width for the crosshair lines
See Also

public void setTooltipBackgroundColor (int tooltipBackgroundColor)

Sets the background color for the tooltip

Parameters
tooltipBackgroundColor the int representation of the background color for the tooltip

public void setTooltipBorderColor (int tooltipBorderColor)

Sets the color for the tooltip's border.

Parameters
tooltipBorderColor the int representation of the color for the tooltip's border

public void setTooltipBorderWidth (float tooltipBorderWidth)

Sets the width for the tooltip's border, in device independent pixels.

Parameters
tooltipBorderWidth the width for the tooltip's border, in device independent pixels

public void setTooltipCornerRadius (float tooltipCornerRadius)

Sets the corner radius for the tooltip, in device independent pixels.

Parameters
tooltipCornerRadius the corner radius for the tooltip, in device independent pixels.

public void setTooltipLabelBackgroundColor (int tooltipLabelBackgroundColor)

Sets the background color for the label in the tooltip.

Parameters
tooltipLabelBackgroundColor the int representation of the background color for the label in the tooltip

public void setTooltipPadding (float tooltipPadding)

Sets the amount of padding for the crosshair's tooltip, in device independent pixels.

Parameters
tooltipPadding the amount of padding for the crosshair's tooltip, in device independent pixels

public void setTooltipTextColor (int tooltipTextColor)

Sets the color for the text in the tooltip.

Parameters
tooltipTextColor the int representation of the color for the text in the tooltip

public void setTooltipTextSize (float tooltipTextSize)

Sets the size for the text in the tooltip, in scaled pixels.

Parameters
tooltipTextSize the size for the text in the tooltip, in scaled pixels

public void setTooltipTypeface (Typeface tooltipTypeface)

Sets the android.graphics.Typeface for the text in the tooltip.

Parameters
tooltipTypeface the typeface for the text in the tooltip