|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.androidplot.ui.Formatter<XYPlot>
com.androidplot.xy.XYSeriesFormatter<XYRegionFormatter>
com.androidplot.xy.LineAndPointFormatter
public class LineAndPointFormatter
Defines the visual aesthetics of an XYSeries; outline color and width, fill style, vertex size and color, shadowing, etc.
Constructor Summary | |
---|---|
LineAndPointFormatter(android.content.Context ctx,
int xmlCfgId)
Provided as a convenience to users; allows instantiation and xml configuration to take place in a single line |
|
LineAndPointFormatter(Integer lineColor,
Integer vertexColor,
Integer fillColor)
Deprecated. As of 0.5.1: Use LineAndPointFormatter(Integer, Integer, Integer, PointLabelFormatter) instead. |
|
LineAndPointFormatter(Integer lineColor,
Integer vertexColor,
Integer fillColor,
FillDirection fillDir)
Deprecated. As of 0.5.1: Use LineAndPointFormatter(Integer, Integer, Integer, PointLabelFormatter, FillDirection) instead. |
|
LineAndPointFormatter(Integer lineColor,
Integer vertexColor,
Integer fillColor,
PointLabelFormatter plf)
|
|
LineAndPointFormatter(Integer lineColor,
Integer vertexColor,
Integer fillColor,
PointLabelFormatter plf,
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()
|
android.graphics.Paint |
getLinePaint()
|
PointLabelFormatter |
getPointLabelFormatter()
|
Class<? extends DataRenderer> |
getRendererClass()
|
DataRenderer |
getRendererInstance(XYPlot plot)
Not completely sure why this is necessary, but if it's not here then subclasses are forced to take a Plot instead of an XYPlot as a parameter, which in turn breaks the pattern. |
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 |
setLinePaint(android.graphics.Paint linePaint)
|
void |
setPointLabelFormatter(PointLabelFormatter pointLabelFormatter)
|
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 |
---|
public LineAndPointFormatter(android.content.Context ctx, int xmlCfgId)
ctx
- xmlCfgId
- Id of the xml config file within /res/xml@Deprecated public LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor)
LineAndPointFormatter(Integer, Integer, Integer, PointLabelFormatter)
instead.
lineColor
- vertexColor
- fillColor
- public LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, PointLabelFormatter plf)
@Deprecated public LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, FillDirection fillDir)
LineAndPointFormatter(Integer, Integer, Integer, PointLabelFormatter, FillDirection)
instead.
lineColor
- vertexColor
- fillColor
- fillDir
- Determines which edge or origin of the plot is used to close the path for filling.public LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, PointLabelFormatter plf, FillDirection fillDir)
Method Detail |
---|
public FillDirection getFillDirection()
public void setFillDirection(FillDirection fillDirection)
FillDirection
.
fillDirection
- public Class<? extends DataRenderer> getRendererClass()
getRendererClass
in class Formatter<XYPlot>
public DataRenderer getRendererInstance(XYPlot plot)
XYSeriesFormatter
getRendererInstance
in class XYSeriesFormatter<XYRegionFormatter>
public void enableShadows()
public void disableShadows()
public android.graphics.Paint getLinePaint()
public void setLinePaint(android.graphics.Paint linePaint)
public android.graphics.Paint getVertexPaint()
public void setVertexPaint(android.graphics.Paint vertexPaint)
public android.graphics.Paint getFillPaint()
public void setFillPaint(android.graphics.Paint fillPaint)
public PointLabelFormatter getPointLabelFormatter()
public void setPointLabelFormatter(PointLabelFormatter pointLabelFormatter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |