|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D
jadex.application.space.envsupport.observer.graphics.drawable.Primitive
public class Primitive
| Field Summary | |
|---|---|
static int |
ABSOLUTE_POSITION
|
static int |
ABSOLUTE_ROTATION
|
static int |
ABSOLUTE_SIZE
|
protected Object |
color_
Color or Color binding of the primitive. |
protected IParsedExpression |
drawcondition
The condition deciding if the drawable should be drawn. |
protected boolean |
enableDCPos
Enable DrawableCombiner position |
protected boolean |
enableDCRot
Enable DrawableCombiner position |
protected boolean |
enableDCSize
Enable DrawableCombiner position |
static int |
PRIMITIVE_TYPE_ELLIPSE
|
static int |
PRIMITIVE_TYPE_RECTANGLE
|
static int |
PRIMITIVE_TYPE_REGULARPOLYGON
|
static int |
PRIMITIVE_TYPE_TEXT
|
static int |
PRIMITIVE_TYPE_TEXTUREDRECTANGLE
|
static int |
PRIMITIVE_TYPE_TRIANGLE
|
protected Object[] |
renderinfos
Cached render information |
protected int |
type
Primitive type |
| Constructor Summary | |
|---|---|
Primitive()
|
|
Primitive(int type,
Object position,
Object rotation,
Object size,
int absFlags,
Object c,
IParsedExpression drawcondition)
Initializes the drawable. |
|
| Method Summary | |
|---|---|
void |
enableAbsolutePosition(boolean enable)
Enables using absolute positioning. |
void |
enableAbsoluteRotation(boolean enable)
Enables using absolute rotation. |
void |
enableAbsoluteSize(boolean enable)
Enables using absolute scaling. |
void |
flushRenderInfo()
Flushes the render information. |
Object |
getColor()
Gets the color or color binding of the drawable |
IParsedExpression |
getDrawCondition()
Gets the draw condition. |
Object |
getRenderInfo(int infoId)
Returns cached render information. |
int |
getType()
Get the primitive type. |
boolean |
isRelativePosition()
Tests if primitive is using relative positioning. |
boolean |
isRelativeRotation()
Tests if primitive is using relative rotation. |
boolean |
isRelativeSize()
Tests if primitive is using relative scaling. |
void |
setColor(Object c)
Sets a new color or binding for the drawable |
void |
setDrawCondition(IParsedExpression drawcondition)
Sets the draw condition. |
void |
setRenderInfo(int infoId,
Object info)
Sets cached render information. |
void |
setType(int type)
Set the primitive type. |
| Methods inherited from class jadex.application.space.envsupport.observer.graphics.drawable.AbstractVisual2D |
|---|
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ABSOLUTE_POSITION
public static final int ABSOLUTE_SIZE
public static final int ABSOLUTE_ROTATION
public static final int PRIMITIVE_TYPE_ELLIPSE
public static final int PRIMITIVE_TYPE_RECTANGLE
public static final int PRIMITIVE_TYPE_REGULARPOLYGON
public static final int PRIMITIVE_TYPE_TEXT
public static final int PRIMITIVE_TYPE_TEXTUREDRECTANGLE
public static final int PRIMITIVE_TYPE_TRIANGLE
protected boolean enableDCPos
protected boolean enableDCSize
protected boolean enableDCRot
protected Object color_
protected IParsedExpression drawcondition
protected Object[] renderinfos
protected int type
| Constructor Detail |
|---|
public Primitive()
public Primitive(int type,
Object position,
Object rotation,
Object size,
int absFlags,
Object c,
IParsedExpression drawcondition)
position - position or position-bindingxrotation - xrotation or rotation-bindingyrotation - yrotation or rotation-bindingzrotation - zrotation or rotation-bindingsize - size or size-bindingabsFlags - flags for setting position, size and rotation as absolutesc - the drawable's color or color binding| Method Detail |
|---|
public int getType()
public void setType(int type)
type - The type to set.public void enableAbsolutePosition(boolean enable)
enable - true, to use the drawable's value as an absolute.public void enableAbsoluteSize(boolean enable)
enable - true, to use the drawable's value as an absolute.public void enableAbsoluteRotation(boolean enable)
enable - true, to use the drawable's value as an absolute.public boolean isRelativePosition()
public boolean isRelativeSize()
public boolean isRelativeRotation()
public void setDrawCondition(IParsedExpression drawcondition)
drawcondition - the draw conditionpublic IParsedExpression getDrawCondition()
public Object getColor()
public void setColor(Object c)
c - new color or bindingpublic Object getRenderInfo(int infoId)
infoId - id of the information
public void setRenderInfo(int infoId,
Object info)
infoId - id of the informationinfo - the render infopublic void flushRenderInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||