|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.Shape
com.xj.anylogic.engine.presentation.ShapeGroup
com.xj.anylogic.engine.presentation.Shape3DGroup
com.xj.anylogic.engine.presentation.ShapeTopLevelPresentationGroup
public class ShapeTopLevelPresentationGroup
Top-level group of active object or experiment presentation
| Field Summary |
|---|
| Fields inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
UNKNOWN_NAME |
| Constructor Summary | |
|---|---|
ShapeTopLevelPresentationGroup(Presentable presentable,
boolean ispublic,
double x,
double y,
double z,
double rotationXY,
java.lang.Object... contents)
Constructs a top-level presentation group with specific attributes and possibly with some content |
|
| Method Summary | |
|---|---|
void |
add(int shape)
Adds a non-persistent shape to the group. |
Configuration3D |
getConfiguration3D()
Returns 3D configuration of active object. |
ShapeEmbeddedObjectPresentation |
getOwner()
Returns the owner of this presentation if this is an active object presentation and it is embedded to another active object This method returns null in case the active object
is not embedded anywhere or if this is an experiment presentation |
java.util.ArrayList<java.lang.Object> |
getShapes()
Returns the collection of shapes in the group (not a copy). |
boolean |
remove(int shape)
Tries to remove a non-persistent shape from the group, returns false if the shape was not contained. |
void |
setOwner_xjal(ShapeEmbeddedObjectPresentation owner)
This method shouldn't be called by user. |
| Methods inherited from class com.xj.anylogic.engine.presentation.Shape3DGroup |
|---|
add, add, clone, contains, draw, get, get3DElement_xjal, getRotation, getRotationX, getRotationY, getRotationZ, getScaleZ, getZ, getZOffset, onClickAt, remove, remove, set3DElement_xjal, setContextReference_xjal, setPos, setPos, setRotation, setRotationX, setRotationY, setRotationZ, setScale, setScale, setScaleX, setScaleY, setScaleZ, setVisible, setX, setY, setZ |
| Methods inherited from class com.xj.anylogic.engine.presentation.ShapeGroup |
|---|
add, add, clear, getPresentable, indexOf, onDraw, remove, remove, restoreOwner, size |
| Methods inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
canHandleClick, getGroup, getName, getScaleX, getScaleY, getX, getY, isVisible, onClick |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xj.anylogic.engine.Locatable2D |
|---|
getX, getY |
| Methods inherited from interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal |
|---|
getPresentable |
| Constructor Detail |
|---|
public ShapeTopLevelPresentationGroup(Presentable presentable,
boolean ispublic,
double x,
double y,
double z,
double rotationXY,
java.lang.Object... contents)
presentable - the presentable object owning this shapeispublic - if true, the shape is visible on container's presentationx - the x coordinate of groupy - the y coordinate of groupz - the z coordinate of grouprotationXY - the rotation of the group in radianscontents - the (possibly, empty) initial set of shapes (Shape objects, int ids, ReplicatedShape or Light3D objects)| Method Detail |
|---|
public void add(int shape)
add in class Shape3DGroupshape - the shape id to addpublic boolean remove(int shape)
remove in class Shape3DGroupshape - the id of the shape to remove
public java.util.ArrayList<java.lang.Object> getShapes()
getShapes in class Shape3DGrouppublic ShapeEmbeddedObjectPresentation getOwner()
null in case the active object
is not embedded anywhere or if this is an experiment presentation
public Configuration3D getConfiguration3D()
null for experiments.
public void setOwner_xjal(ShapeEmbeddedObjectPresentation owner)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||