com.androidplot.util.PixelUtils Java Examples
The following examples show how to use
com.androidplot.util.PixelUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PowerPlotFragment.java From GNSS_Compare with Apache License 2.0 | 5 votes |
protected void formatSeries(XYPlot plot, XYSeriesFormatter formatter) { BarRenderer barRenderer = plot.getRenderer(PowerBarRenderer.class); barRenderer.setBarGroupWidth(BarRenderer.BarGroupWidthMode.FIXED_WIDTH, PixelUtils.dpToPix(15)); barRenderer.setBarOrientation(BarRenderer.BarOrientation.SIDE_BY_SIDE); ((BarFormatter) formatter).setMarginLeft(PixelUtils.dpToPix(1)); ((BarFormatter) formatter).setMarginRight(PixelUtils.dpToPix(1)); }
Example #2
Source File: PositionErrorFragment.java From GNSS_Compare with Apache License 2.0 | 4 votes |
protected void formatSeries(XYSeriesFormatter formatter) { ((LineAndPointFormatter)formatter).getVertexPaint().setStrokeWidth(PixelUtils.dpToPix(10)); }