public abstract class Shape
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Shape.Type
Enum describing the type of a shape
|
Modifier and Type | Field and Description |
---|---|
protected long |
addr
the address of the shape
|
Constructor and Description |
---|
Shape() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Needs to be called when the shape is no longer used, e.g.
|
int |
getChildCount()
Get the number of child primitives.
|
float |
getRadius()
Returns the radius of this shape
|
abstract Shape.Type |
getType()
Get the type of this shape.
|
protected static int |
jniGetType(long addr) |
void |
setRadius(float radius)
Sets the radius of this shape
|
public abstract Shape.Type getType()
public float getRadius()
public void setRadius(float radius)
public void dispose()
protected static int jniGetType(long addr)
public int getChildCount()