Home
last modified time | relevance | path

Searched refs:valToPix (Results 1 – 7 of 7) sorted by relevance

/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/util/
DValPixConverterTest.java61 assertEquals(50.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
66 assertEquals(25.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
70 assertEquals(0.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
74 assertEquals(100.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
79 assertEquals(50.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
83 assertEquals(0.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
87 assertEquals(50.0f, ValPixConverter.valToPix(value, min, max, sizeInPix, true)); in testValToPix()
92 assertEquals(0f, ValPixConverter.valToPix(-100, min, max, sizeInPix, false)); in testValToPix()
93 assertEquals(200f, ValPixConverter.valToPix(100, min, max, sizeInPix, false)); in testValToPix()
104 float pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true); in testpixToVal()
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DValPixConverter.java29 … public static float valToPix(double val, double min, double max, float lengthPix, boolean flip) { in valToPix() method in ValPixConverter
91 …public static PointF valToPix(Number x, Number y, RectF plotArea, Number minX, Number maxX, Number… in valToPix() method in ValPixConverter
92 …float pixX = ValPixConverter.valToPix(x.doubleValue(), minX.doubleValue(), maxX.doubleValue(), plo… in valToPix()
93 …float pixY = ValPixConverter.valToPix(y.doubleValue(), minY.doubleValue(), maxY.doubleValue(), plo… in valToPix()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/
DXYSeriesRendererTest.java84 float val = ValPixConverter.valToPix(x, 0, 9, gridRect.width(), false) + (gridRect.left); in testDataToGridCorrelation()
89 val = ValPixConverter.valToPix(x, 0, 9, gridRect.width(), false) + (gridRect.left); in testDataToGridCorrelation()
94 val = ValPixConverter.valToPix(x, 0, 9, gridRect.width(), false) + (gridRect.left); in testDataToGridCorrelation()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DRectRegion.java101 PointF topLeftPoint = ValPixConverter.valToPix( in getRectF()
109 PointF bottomRightPoint = ValPixConverter.valToPix( in getRectF()
DLineAndPointRenderer.java93 thisPoint = ValPixConverter.valToPix( in drawSeries()
173 float originPix = ValPixConverter.valToPix( in renderPath()
DBarRenderer.java314 …this.pixX = ValPixConverter.valToPix(xVal, getPlot().getCalculatedMinX().doubleValue(), getPlot().… in Bar()
319 …this.pixY = ValPixConverter.valToPix(yVal, getPlot().getCalculatedMinY().doubleValue(), getPlot().… in Bar()
DXYGraphWidget.java528 domainOriginF = ValPixConverter.valToPix(domainOriginVal, plot in drawGrid()
604 rangeOriginF = ValPixConverter.valToPix(rangeOriginD, plot in drawGrid()
708 float yPix = ValPixConverter.valToPix(yVal, plot in drawMarkers()
734 float xPix = ValPixConverter.valToPix(xVal, plot in drawMarkers()