Class Paint
java.lang.Object
com.codename1.charts.compat.Paint
DO NOT USE. Compatibility class used internally by the Charts API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetColor()intintfloatfloatgetStyle()intvoidgetTextBounds(String string, int start, int count, Rectangle2D rect) floatvoidgetTextWidths(String text, float[] widths) floatmeasureText(char[] chars, int start, int count) floatmeasureText(String newText) voidsetAntiAlias(boolean antialiasing) voidsetColor(int color) voidsetStrokeCap(int cap) voidsetStrokeJoin(int join) voidsetStrokeMiter(float miter) voidsetStrokeWidth(float i) voidsetStyle(Paint.Style style) voidsetTextAlign(int align) voidsetTextSize(float size) voidsetTypeface(Font textTypeface) toString()Returns a string representation of the object.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
Paint
public Paint()
-
-
Method Details
-
getTextWidths
-
breakText
-
getTextBounds
-
measureText
-
measureText
public float measureText(char[] chars, int start, int count) -
setAntiAlias
public void setAntiAlias(boolean antialiasing) -
getTypeface
-
setTypeface
-
getStrokeCap
public int getStrokeCap() -
setStrokeCap
public void setStrokeCap(int cap) -
getStrokeJoin
public int getStrokeJoin() -
setStrokeJoin
public void setStrokeJoin(int join) -
getStrokeMiter
public float getStrokeMiter() -
setStrokeMiter
public void setStrokeMiter(float miter) -
getStyle
-
setStyle
-
getStrokeWidth
public float getStrokeWidth() -
setStrokeWidth
public void setStrokeWidth(float i) -
getColor
public int getColor() -
setColor
public void setColor(int color) -
getTextAlign
public int getTextAlign() -
setTextAlign
public void setTextAlign(int align) -
getTextSize
public float getTextSize() -
setTextSize
public void setTextSize(float size) -
toString
Description copied from class:ObjectReturns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method. The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of: getClass().getName() + '@' + Integer.toHexString(hashCode())
-