com.androidplot.xy
Class ValueMarker<PositionMetricType extends PositionMetric>

java.lang.Object
  extended by com.androidplot.xy.ValueMarker<PositionMetricType>
Type Parameters:
PositionMetricType -
Direct Known Subclasses:
XValueMarker, YValueMarker

public abstract class ValueMarker<PositionMetricType extends PositionMetric>
extends Object

Encapsulates a single axis line marker drawn onto an XYPlot at a specified value.


Nested Class Summary
static class ValueMarker.TextOrientation
           
 
Constructor Summary
ValueMarker(Number value, String text, PositionMetricType textPosition)
           
ValueMarker(Number value, String text, PositionMetricType textPosition, int linePaint, int textPaint)
           
ValueMarker(Number value, String text, PositionMetricType textPosition, android.graphics.Paint linePaint, android.graphics.Paint textPaint)
           
 
Method Summary
 android.graphics.Paint getLinePaint()
           
 String getText()
           
 int getTextMargin()
          Currently not implemented.
 ValueMarker.TextOrientation getTextOrientation()
           
 android.graphics.Paint getTextPaint()
           
 PositionMetricType getTextPosition()
           
 Number getValue()
           
 void setLinePaint(android.graphics.Paint linePaint)
           
 void setText(String text)
           
 void setTextMargin(int textMargin)
           
 void setTextOrientation(ValueMarker.TextOrientation textOrientation)
          Currently not implemented.
 void setTextPaint(android.graphics.Paint textPaint)
           
 void setTextPosition(PositionMetricType textPosition)
           
 void setValue(Number value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueMarker

public ValueMarker(Number value,
                   String text,
                   PositionMetricType textPosition)

ValueMarker

public ValueMarker(Number value,
                   String text,
                   PositionMetricType textPosition,
                   android.graphics.Paint linePaint,
                   android.graphics.Paint textPaint)
Parameters:
value -
text -
textPosition -
linePaint -
textPaint -

ValueMarker

public ValueMarker(Number value,
                   String text,
                   PositionMetricType textPosition,
                   int linePaint,
                   int textPaint)
Method Detail

getText

public String getText()

setText

public void setText(String text)

getValue

public Number getValue()

setValue

public void setValue(Number value)

getLinePaint

public android.graphics.Paint getLinePaint()

setLinePaint

public void setLinePaint(android.graphics.Paint linePaint)

getTextPaint

public android.graphics.Paint getTextPaint()

setTextPaint

public void setTextPaint(android.graphics.Paint textPaint)

getTextOrientation

public ValueMarker.TextOrientation getTextOrientation()

setTextOrientation

public void setTextOrientation(ValueMarker.TextOrientation textOrientation)
Currently not implemented. Sets the orientation of the text portion of this ValueMarker.

Parameters:
textOrientation -

getTextMargin

public int getTextMargin()
Currently not implemented.

Returns:

setTextMargin

public void setTextMargin(int textMargin)

getTextPosition

public PositionMetricType getTextPosition()

setTextPosition

public void setTextPosition(PositionMetricType textPosition)


Copyright © 2010-2013 androidplot.com. All Rights Reserved.