|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.androidplot.ui.widget.Widget com.androidplot.xy.XYGraphWidget
public class XYGraphWidget
Displays graphical data annotated with domain and range tick markers.
Nested Class Summary | |
---|---|
static class |
XYGraphWidget.XYPlotOrientation
Will be used in a future version. |
Constructor Summary | |
---|---|
XYGraphWidget(LayoutManager layoutManager,
XYPlot plot,
SizeMetrics sizeMetrics)
|
Method Summary | |
---|---|
void |
addAxisValueLabelRegion(RectRegion region,
AxisValueLabelFormatter formatter)
Add a new Region used for rendering axis valuelabels. |
void |
addDomainAxisValueLabelRegion(double min,
double max,
AxisValueLabelFormatter formatter)
Convenience method - wraps addAxisValueLabelRegion, using Double.POSITIVE_INFINITY and Double.NEGATIVE_INFINITY to mask off range axis value labels. |
void |
addRangeAxisValueLabelRegion(double min,
double max,
AxisValueLabelFormatter formatter)
Convenience method - wraps addAxisValueLabelRegion, using Double.POSITIVE_INFINITY and Double.NEGATIVE_INFINITY to mask off domain axis value labels. |
void |
drawRangeTick(android.graphics.Canvas canvas,
float yPix,
Number yVal,
android.graphics.Paint labelPaint,
android.graphics.Paint linePaint,
boolean drawLineOnly)
|
AxisValueLabelFormatter |
getAxisValueLabelFormatterForDomainVal(double val)
|
AxisValueLabelFormatter |
getAxisValueLabelFormatterForRangeVal(double val)
|
AxisValueLabelFormatter |
getAxisValueLabelFormatterForVal(double x,
double y)
Returns the formatter associated with the first (bottom) Region containing x and y. |
ZIndexable<RectRegion> |
getAxisValueLabelRegions()
|
android.graphics.Paint |
getCursorLabelBackgroundPaint()
|
android.graphics.Paint |
getCursorLabelPaint()
|
float |
getDomainCursorPosition()
|
Double |
getDomainCursorVal()
|
android.graphics.Paint |
getDomainGridLinePaint()
Get the paint used to draw the domain grid line. |
float |
getDomainLabelHorizontalOffset()
|
float |
getDomainLabelOrientation()
|
android.graphics.Paint |
getDomainLabelPaint()
|
int |
getDomainLabelTickExtension()
|
float |
getDomainLabelVerticalOffset()
|
float |
getDomainLabelWidth()
|
android.graphics.Paint |
getDomainOriginLabelPaint()
|
android.graphics.Paint |
getDomainOriginLinePaint()
|
android.graphics.Paint |
getDomainSubGridLinePaint()
Get the paint used to draw the domain grid line. |
Format |
getDomainValueFormat()
|
android.graphics.Paint |
getGridBackgroundPaint()
|
float |
getGridPaddingBottom()
|
float |
getGridPaddingLeft()
|
float |
getGridPaddingRight()
|
float |
getGridPaddingTop()
|
android.graphics.RectF |
getGridRect()
Returns a RectF representing the grid area last drawn by this plot. |
float |
getRangeCursorPosition()
|
Double |
getRangeCursorVal()
|
android.graphics.Paint |
getRangeGridLinePaint()
Get the paint used to draw the range grid line. |
float |
getRangeLabelHorizontalOffset()
|
float |
getRangeLabelOrientation()
|
android.graphics.Paint |
getRangeLabelPaint()
|
int |
getRangeLabelTickExtension()
|
float |
getRangeLabelVerticalOffset()
|
float |
getRangeLabelWidth()
|
android.graphics.Paint |
getRangeOriginLabelPaint()
|
android.graphics.Paint |
getRangeOriginLinePaint()
|
android.graphics.Paint |
getRangeSubGridLinePaint()
Get the paint used to draw the range grid line. |
Format |
getRangeValueFormat()
|
int |
getTicksPerDomainLabel()
|
int |
getTicksPerRangeLabel()
|
Double |
getXVal(float xPix)
Converts an x pixel into an x value. |
Double |
getXVal(android.graphics.PointF point)
Convenience method. |
Double |
getYVal(float yPix)
Converts a y pixel to a y value. |
Double |
getYVal(android.graphics.PointF point)
Convenience method. |
boolean |
isDomainAxisBottom()
|
boolean |
isDrawMarkersEnabled()
|
boolean |
isRangeAxisLeft()
|
void |
setCursorLabelBackgroundPaint(android.graphics.Paint cursorLabelBackgroundPaint)
|
void |
setCursorLabelPaint(android.graphics.Paint cursorLabelPaint)
|
void |
setCursorPosition(float x,
float y)
|
void |
setCursorPosition(android.graphics.PointF point)
|
void |
setDomainAxisBottom(boolean domainAxisBottom)
|
void |
setDomainAxisPosition(boolean domainAxisBottom,
boolean domainAxisOverlay,
int tickSize,
String maxLabelString)
|
void |
setDomainCursorPosition(float domainCursorPosition)
|
void |
setDomainGridLinePaint(android.graphics.Paint gridLinePaint)
Set the paint used to draw the domain grid line. |
void |
setDomainLabelHorizontalOffset(float domainLabelHorizontalOffset)
|
void |
setDomainLabelOrientation(float domainLabelOrientation)
|
void |
setDomainLabelPaint(android.graphics.Paint domainLabelPaint)
|
void |
setDomainLabelTickExtension(int domainLabelTickExtension)
|
void |
setDomainLabelVerticalOffset(float domainLabelVerticalOffset)
|
void |
setDomainLabelWidth(float domainLabelWidth)
|
void |
setDomainOriginLabelPaint(android.graphics.Paint domainOriginLabelPaint)
|
void |
setDomainOriginLinePaint(android.graphics.Paint domainOriginLinePaint)
|
void |
setDomainSubGridLinePaint(android.graphics.Paint gridLinePaint)
Set the paint used to draw the domain grid line. |
void |
setDomainValueFormat(Format domainValueFormat)
|
void |
setDrawMarkersEnabled(boolean drawMarkersEnabled)
|
void |
setGridBackgroundPaint(android.graphics.Paint gridBackgroundPaint)
|
void |
setGridPadding(float left,
float top,
float right,
float bottom)
|
void |
setGridPaddingBottom(float gridPaddingBottom)
|
void |
setGridPaddingLeft(float gridPaddingLeft)
|
void |
setGridPaddingRight(float gridPaddingRight)
|
void |
setGridPaddingTop(float gridPaddingTop)
|
void |
setRangeAxisLeft(boolean rangeAxisLeft)
|
void |
setRangeAxisPosition(boolean rangeAxisLeft,
boolean rangeAxisOverlay,
int tickSize,
String maxLableString)
|
void |
setRangeCursorPosition(float rangeCursorPosition)
|
void |
setRangeGridLinePaint(android.graphics.Paint gridLinePaint)
Set the Paint used to draw the range grid line. |
void |
setRangeLabelHorizontalOffset(float rangeLabelHorizontalOffset)
|
void |
setRangeLabelOrientation(float rangeLabelOrientation)
|
void |
setRangeLabelPaint(android.graphics.Paint rangeLabelPaint)
|
void |
setRangeLabelTickExtension(int rangeLabelTickExtension)
|
void |
setRangeLabelVerticalOffset(float rangeLabelVerticalOffset)
|
void |
setRangeLabelWidth(float rangeLabelWidth)
|
void |
setRangeOriginLabelPaint(android.graphics.Paint rangeOriginLabelPaint)
|
void |
setRangeOriginLinePaint(android.graphics.Paint rangeOriginLinePaint)
|
void |
setRangeSubGridLinePaint(android.graphics.Paint gridLinePaint)
Set the Paint used to draw the range grid line. |
void |
setRangeValueFormat(Format rangeValueFormat)
|
void |
setTicksPerDomainLabel(int ticksPerDomainLabel)
|
void |
setTicksPerRangeLabel(int ticksPerRangeLabel)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XYGraphWidget(LayoutManager layoutManager, XYPlot plot, SizeMetrics sizeMetrics)
Method Detail |
---|
public float getRangeLabelOrientation()
public void setRangeLabelOrientation(float rangeLabelOrientation)
public float getDomainLabelOrientation()
public void setDomainLabelOrientation(float domainLabelOrientation)
public ZIndexable<RectRegion> getAxisValueLabelRegions()
public void addAxisValueLabelRegion(RectRegion region, AxisValueLabelFormatter formatter)
region
- formatter
- public void addDomainAxisValueLabelRegion(double min, double max, AxisValueLabelFormatter formatter)
min
- max
- formatter
- public void addRangeAxisValueLabelRegion(double min, double max, AxisValueLabelFormatter formatter)
min
- max
- formatter
- public AxisValueLabelFormatter getAxisValueLabelFormatterForVal(double x, double y)
x
- y
-
public AxisValueLabelFormatter getAxisValueLabelFormatterForDomainVal(double val)
public AxisValueLabelFormatter getAxisValueLabelFormatterForRangeVal(double val)
public android.graphics.RectF getGridRect()
public Double getYVal(android.graphics.PointF point)
point
-
public Double getYVal(float yPix)
yPix
-
public Double getXVal(android.graphics.PointF point)
point
-
public Double getXVal(float xPix)
xPix
-
public void drawRangeTick(android.graphics.Canvas canvas, float yPix, Number yVal, android.graphics.Paint labelPaint, android.graphics.Paint linePaint, boolean drawLineOnly)
public float getDomainLabelWidth()
public void setDomainLabelWidth(float domainLabelWidth)
public float getRangeLabelWidth()
public void setRangeLabelWidth(float rangeLabelWidth)
public float getDomainLabelVerticalOffset()
public void setDomainLabelVerticalOffset(float domainLabelVerticalOffset)
public float getDomainLabelHorizontalOffset()
public void setDomainLabelHorizontalOffset(float domainLabelHorizontalOffset)
public float getRangeLabelHorizontalOffset()
public void setRangeLabelHorizontalOffset(float rangeLabelHorizontalOffset)
public float getRangeLabelVerticalOffset()
public void setRangeLabelVerticalOffset(float rangeLabelVerticalOffset)
public android.graphics.Paint getGridBackgroundPaint()
public void setGridBackgroundPaint(android.graphics.Paint gridBackgroundPaint)
public android.graphics.Paint getDomainLabelPaint()
public void setDomainLabelPaint(android.graphics.Paint domainLabelPaint)
public android.graphics.Paint getRangeLabelPaint()
public void setRangeLabelPaint(android.graphics.Paint rangeLabelPaint)
public android.graphics.Paint getDomainGridLinePaint()
public void setDomainGridLinePaint(android.graphics.Paint gridLinePaint)
gridLinePaint
- public android.graphics.Paint getRangeGridLinePaint()
public android.graphics.Paint getDomainSubGridLinePaint()
public void setDomainSubGridLinePaint(android.graphics.Paint gridLinePaint)
gridLinePaint
- public void setRangeGridLinePaint(android.graphics.Paint gridLinePaint)
gridLinePaint
- public android.graphics.Paint getRangeSubGridLinePaint()
public void setRangeSubGridLinePaint(android.graphics.Paint gridLinePaint)
gridLinePaint
- public Format getRangeValueFormat()
public void setRangeValueFormat(Format rangeValueFormat)
public Format getDomainValueFormat()
public void setDomainValueFormat(Format domainValueFormat)
public int getDomainLabelTickExtension()
public void setDomainLabelTickExtension(int domainLabelTickExtension)
public int getRangeLabelTickExtension()
public void setRangeLabelTickExtension(int rangeLabelTickExtension)
public int getTicksPerRangeLabel()
public void setTicksPerRangeLabel(int ticksPerRangeLabel)
public int getTicksPerDomainLabel()
public void setTicksPerDomainLabel(int ticksPerDomainLabel)
public void setGridPaddingTop(float gridPaddingTop)
public float getGridPaddingBottom()
public void setGridPaddingBottom(float gridPaddingBottom)
public float getGridPaddingLeft()
public void setGridPaddingLeft(float gridPaddingLeft)
public float getGridPaddingRight()
public void setGridPaddingRight(float gridPaddingRight)
public float getGridPaddingTop()
public void setGridPadding(float left, float top, float right, float bottom)
public android.graphics.Paint getDomainOriginLinePaint()
public void setDomainOriginLinePaint(android.graphics.Paint domainOriginLinePaint)
public android.graphics.Paint getRangeOriginLinePaint()
public void setRangeOriginLinePaint(android.graphics.Paint rangeOriginLinePaint)
public android.graphics.Paint getDomainOriginLabelPaint()
public void setDomainOriginLabelPaint(android.graphics.Paint domainOriginLabelPaint)
public android.graphics.Paint getRangeOriginLabelPaint()
public void setRangeOriginLabelPaint(android.graphics.Paint rangeOriginLabelPaint)
public void setCursorPosition(float x, float y)
public void setCursorPosition(android.graphics.PointF point)
public float getDomainCursorPosition()
public Double getDomainCursorVal()
public void setDomainCursorPosition(float domainCursorPosition)
public float getRangeCursorPosition()
public Double getRangeCursorVal()
public void setRangeCursorPosition(float rangeCursorPosition)
public android.graphics.Paint getCursorLabelPaint()
public void setCursorLabelPaint(android.graphics.Paint cursorLabelPaint)
public android.graphics.Paint getCursorLabelBackgroundPaint()
public void setCursorLabelBackgroundPaint(android.graphics.Paint cursorLabelBackgroundPaint)
public boolean isDrawMarkersEnabled()
public void setDrawMarkersEnabled(boolean drawMarkersEnabled)
public boolean isRangeAxisLeft()
public void setRangeAxisLeft(boolean rangeAxisLeft)
public boolean isDomainAxisBottom()
public void setDomainAxisBottom(boolean domainAxisBottom)
public void setRangeAxisPosition(boolean rangeAxisLeft, boolean rangeAxisOverlay, int tickSize, String maxLableString)
public void setDomainAxisPosition(boolean domainAxisBottom, boolean domainAxisOverlay, int tickSize, String maxLabelString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |