|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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()
Should only be used in conjunction with calls to configure()... |
|
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()
|
PointLabeler |
getPointLabeler()
|
PointLabelFormatter |
getPointLabelFormatter()
|
Class<? extends SeriesRenderer> |
getRendererClass()
|
SeriesRenderer |
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 |
setPointLabeler(PointLabeler pointLabeler)
|
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 com.androidplot.ui.Formatter |
---|
configure |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineAndPointFormatter()
public LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, PointLabelFormatter plf)
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 SeriesRenderer> getRendererClass()
getRendererClass
in class Formatter<XYPlot>
public SeriesRenderer 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)
public PointLabeler getPointLabeler()
public void setPointLabeler(PointLabeler pointLabeler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |