-
public abstract class ValueMarker<PositionMetricType extends PositionMetric>Encapsulates a single axis line marker drawn onto an XYPlot at a specified value.
-
-
Field Summary
Fields Modifier and Type Field Description private Numbervalueprivate PaintlinePaintprivate PainttextPaintprivate TextOrientationtextOrientationprivate inttextMarginprivate PositionMetricTypetextPositionprivate Stringtext
-
Constructor Summary
Constructors Constructor Description ValueMarker(Number value, String text, PositionMetricType textPosition)ValueMarker(Number value, String text, PositionMetricType textPosition, Paint linePaint, Paint textPaint)ValueMarker(Number value, String text, PositionMetricType textPosition, int linePaint, int textPaint)
-
Method Summary
Modifier and Type Method Description NumbergetValue()voidsetValue(Number value)PaintgetLinePaint()voidsetLinePaint(Paint linePaint)PaintgetTextPaint()voidsetTextPaint(Paint textPaint)TextOrientationgetTextOrientation()voidsetTextOrientation(TextOrientation textOrientation)Currently not implemented. intgetTextMargin()Currently not implemented. voidsetTextMargin(int textMargin)PositionMetricTypegetTextPosition()voidsetTextPosition(PositionMetricType textPosition)StringgetText()voidsetText(String text)abstract voiddraw(Canvas canvas, XYPlot plot, RectF gridRect)-
-
Constructor Detail
-
ValueMarker
ValueMarker(Number value, String text, PositionMetricType textPosition)
-
ValueMarker
ValueMarker(Number value, String text, PositionMetricType textPosition, Paint linePaint, Paint textPaint)
-
ValueMarker
ValueMarker(Number value, String text, PositionMetricType textPosition, int linePaint, int textPaint)
-
-
Method Detail
-
getLinePaint
Paint getLinePaint()
-
setLinePaint
void setLinePaint(Paint linePaint)
-
getTextPaint
Paint getTextPaint()
-
setTextPaint
void setTextPaint(Paint textPaint)
-
getTextOrientation
TextOrientation getTextOrientation()
-
setTextOrientation
void setTextOrientation(TextOrientation textOrientation)
Currently not implemented. Sets the orientation of the text portion of thisValueMarker.
-
getTextMargin
int getTextMargin()
Currently not implemented.
-
setTextMargin
void setTextMargin(int textMargin)
-
getTextPosition
PositionMetricType getTextPosition()
-
setTextPosition
void setTextPosition(PositionMetricType textPosition)
-
-
-
-