-
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 Number
value
private Paint
linePaint
private Paint
textPaint
private TextOrientation
textOrientation
private int
textMargin
private PositionMetricType
textPosition
private String
text
-
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 Number
getValue()
void
setValue(Number value)
Paint
getLinePaint()
void
setLinePaint(Paint linePaint)
Paint
getTextPaint()
void
setTextPaint(Paint textPaint)
TextOrientation
getTextOrientation()
void
setTextOrientation(TextOrientation textOrientation)
Currently not implemented. int
getTextMargin()
Currently not implemented. void
setTextMargin(int textMargin)
PositionMetricType
getTextPosition()
void
setTextPosition(PositionMetricType textPosition)
String
getText()
void
setText(String text)
abstract void
draw(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)
-
-
-
-