|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.androidplot.util.PaintUtils
public class PaintUtils
Convenience methods that operate on Paint instances. These methods primarily deal with converting pixel values to/from dp values.
Constructor Summary | |
---|---|
PaintUtils()
|
Method Summary | |
---|---|
static void |
setFontSizeDp(android.graphics.Paint paint,
float fontSizeDp)
Sets a paint instance's font size in dp |
static void |
setLineSizeDp(android.graphics.Paint paint,
float lineSizeDp)
Sets a paint instance's line stroke size in dp |
static void |
setShadowDp(android.graphics.Paint paint,
float radiusDp,
float dxDp,
float dyDp,
int color)
Set a paint instance's shadowing using dp values |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaintUtils()
Method Detail |
---|
public static void setLineSizeDp(android.graphics.Paint paint, float lineSizeDp)
paint
- lineSizeDp
- public static void setFontSizeDp(android.graphics.Paint paint, float fontSizeDp)
paint
- fontSizeDp
- public static void setShadowDp(android.graphics.Paint paint, float radiusDp, float dxDp, float dyDp, int color)
paint
- radiusDp
- dxDp
- dyDp
- color
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |