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
 void disableShadows()
           
 void enableShadows()
          Enables the shadow layer on linePaint and shadowPaint by calling setShadowLayer() with preset values.
 FillDirection getFillDirection()
           
 android.graphics.Paint getFillPaint()
           
 int getLabelStep()
           
 android.graphics.Paint getLinePaint()
           
 android.graphics.Paint getVertexPaint()
           
 void setFillDirection(FillDirection fillDirection)
          Sets which edge to use to close the line's path for filling purposes.
 void setFillPaint(android.graphics.Paint fillPaint)
           
 void setLabelStep(int labelStep)
           
 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)
Sets which edge to use to close the line's path for filling purposes. See FillDirection.

Parameters:
fillDirection -

enableShadows

public void enableShadows()
Enables the shadow layer on linePaint and shadowPaint by calling setShadowLayer() with preset values.


disableShadows

public void disableShadows()

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)

getLabelStep

public int getLabelStep()

setLabelStep

public void setLabelStep(int labelStep)


Copyright © 2012. All Rights Reserved.