com.androidplot.xy
Class LineAndPointFormatter

java.lang.Object
  extended by com.androidplot.ui.Formatter
      extended by com.androidplot.xy.XYSeriesFormatter<XYRegionFormatter>
          extended by com.androidplot.xy.LineAndPointFormatter
Direct Known Subclasses:
BezierLineAndPointFormatter, StepFormatter

public class LineAndPointFormatter
extends XYSeriesFormatter<XYRegionFormatter>

Defines the visual aesthetics of an XYSeries; outline color and width, fill style, vertex size and color, shadowing, etc.


Constructor Summary
LineAndPointFormatter(java.lang.Integer lineColor, java.lang.Integer vertexColor, java.lang.Integer fillColor)
          Set corresponding parameter to null to disable the drawing of lines, vertexes or fill.
LineAndPointFormatter(java.lang.Integer lineColor, java.lang.Integer vertexColor, java.lang.Integer fillColor, FillDirection fillDir)
           
 
Method Summary
 FillDirection getFillDirection()
           
 android.graphics.Paint getFillPaint()
           
 android.graphics.Paint getLinePaint()
           
 android.graphics.Paint getVertexPaint()
           
 void setFillDirection(FillDirection fillDirection)
           
 void setFillPaint(android.graphics.Paint fillPaint)
           
 void setLinePaint(android.graphics.Paint linePaint)
           
 void setVertexPaint(android.graphics.Paint vertexPaint)
           
 
Methods inherited from class com.androidplot.xy.XYSeriesFormatter
addRegion, getRegionFormatter, getRegions, removeRegion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineAndPointFormatter

public LineAndPointFormatter(java.lang.Integer lineColor,
                             java.lang.Integer vertexColor,
                             java.lang.Integer fillColor)
Set corresponding parameter to null to disable the drawing of lines, vertexes or fill. Uses a default of FillDirection.BOTTOM.

Parameters:
lineColor -
vertexColor -
fillColor -

LineAndPointFormatter

public LineAndPointFormatter(java.lang.Integer lineColor,
                             java.lang.Integer vertexColor,
                             java.lang.Integer fillColor,
                             FillDirection fillDir)
Parameters:
lineColor -
vertexColor -
fillColor -
fillDir - Determines which edge or origin of the plot is used to close the path for filling.
Method Detail

getFillDirection

public FillDirection getFillDirection()

setFillDirection

public void setFillDirection(FillDirection fillDirection)

getLinePaint

public android.graphics.Paint getLinePaint()

setLinePaint

public void setLinePaint(android.graphics.Paint linePaint)

getVertexPaint

public android.graphics.Paint getVertexPaint()

setVertexPaint

public void setVertexPaint(android.graphics.Paint vertexPaint)

getFillPaint

public android.graphics.Paint getFillPaint()

setFillPaint

public void setFillPaint(android.graphics.Paint fillPaint)


Copyright © 2011. All Rights Reserved.