public class LineStyleBuilder extends StyleBuilder
swigCMemOwn
Constructor and Description |
---|
LineStyleBuilder()
Constructs a LineStyleBuilder object with all parameters set to defaults.
|
LineStyleBuilder(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
LineStyle |
buildStyle()
Builds a new instance of the LineStyle object using previously set parameters.
|
void |
delete() |
protected void |
finalize() |
Bitmap |
getBitmap()
Returns the bitmap of the line.
|
float |
getClickWidth()
Returns the width of the line used for click detection.
|
static long |
getCPtr(LineStyleBuilder obj) |
LineEndType |
getLineEndType()
Returns the end point type of the line.
|
LineJointType |
getLineJointType()
Returns the joint type of the line.
|
float |
getStretchFactor()
Returns the stretch factor of the line.
|
float |
getWidth()
Returns the width of the line.
|
void |
setBitmap(Bitmap bitmap)
Sets the bitmap that will be used for drawing the line.
|
void |
setClickWidth(float clickWidth)
Sets the width for the line that will be used for click detection.
Units are screen density independent pixels (DP or DIP). |
void |
setLineEndType(LineEndType lineEndType)
Sets the style in which the end points of the line will be drawn.
|
void |
setLineJointType(LineJointType lineJointType)
Sets the style in which the line segments will be connected with each other.
|
void |
setStretchFactor(float stretchFactor)
Sets the relative stretching coefficient for the line.
|
void |
setWidth(float width)
Sets the width of line in screen density independent pixels (DP or DIP).
|
static LineStyleBuilder |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
public LineStyleBuilder(long cPtr, boolean cMemoryOwn)
public LineStyleBuilder()
public static long getCPtr(LineStyleBuilder obj)
protected void finalize()
finalize
in class StyleBuilder
public void delete()
delete
in class StyleBuilder
public static LineStyleBuilder swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public Bitmap getBitmap()
public void setBitmap(Bitmap bitmap)
bitmap
- The new bitmap for the line.public float getClickWidth()
public void setClickWidth(float clickWidth)
clickWidth
- The new point size in dp.public LineEndType getLineEndType()
public void setLineEndType(LineEndType lineEndType)
lineEndType
- The new line end point type.public LineJointType getLineJointType()
public void setLineJointType(LineJointType lineJointType)
lineJointType
- The new line joint type.public float getStretchFactor()
public void setStretchFactor(float stretchFactor)
stretchFactor
- The new relative stretching coefficient for the line.public float getWidth()
public void setWidth(float width)
width
- The new line width in dp.public LineStyle buildStyle()
public java.lang.String swigGetClassName()
swigGetClassName
in class StyleBuilder
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class StyleBuilder