|
||||||||||
| 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.ShapeLineFill
com.xj.anylogic.engine.presentation.ShapeMultiplePoints
public abstract class ShapeMultiplePoints
A base class for shapes having multiple points, such as polyline or curve.
| Field Summary |
|---|
| Fields inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
UNKNOWN_NAME |
| Constructor Summary | |
|---|---|
ShapeMultiplePoints()
|
|
| Method Summary | |
|---|---|
int |
getNPoints()
Returns the number of points in the shape. |
double |
getPointDx(int i)
Returns the x coordinate of a particular point of the shape relative to the start point. |
double |
getPointDy(int i)
Returns the y coordinate of a particular point of the shape relative to the start point. |
boolean |
isClosed()
Returns the closed/open status of the shape. |
void |
setClosed(boolean closed)
Sets the shape closed or open. |
void |
setNPoints(int n)
Sets the number of points in the shape. |
void |
setPoint(int i,
double ptdx,
double ptdy)
Sets the coordinates of a particular point of the shape relative to the start point. |
void |
setPointDx(int i,
double ptdx)
Sets the x coordinate of a particular point of the shape relative to the start point. |
void |
setPointDy(int i,
double ptdy)
Sets the y coordinate of a particular point of the shape relative to the start point. |
| Methods inherited from class com.xj.anylogic.engine.presentation.ShapeLineFill |
|---|
getFillColor, getFillTexture, getLineColor, getLineStyle, getLineTexture, getLineWidth, setFillColor, setFillColor, setLineColor, setLineColor, setLineStyle, setLineWidth |
| Methods inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
canHandleClick, clone, contains, draw, getGroup, getName, getPresentable, getRotation, getScaleX, getScaleY, getX, getY, isVisible, onClick, onClickAt, restoreOwner, setPos, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xj.anylogic.engine.Path2D |
|---|
getX, getY |
| Constructor Detail |
|---|
public ShapeMultiplePoints()
| Method Detail |
|---|
public void setNPoints(int n)
n - the new number of pointspublic int getNPoints()
getNPoints in interface Path2D
public void setPoint(int i,
double ptdx,
double ptdy)
i - the index of the point (starting from 0)ptdx - the new x coordinate of the point relative to the start pointptdy - the new y coordinate of the point relative to the start point
public void setPointDx(int i,
double ptdx)
i - the index of the point (starting from 0)ptdx - the new x coordinate of the point relative to the start pointpublic double getPointDx(int i)
getPointDx in interface Path2Di - the index of the point (starting from 0)
public void setPointDy(int i,
double ptdy)
i - the index of the point (starting from 0)ptdy - the new y coordinate of the point relative to the start pointpublic double getPointDy(int i)
getPointDy in interface Path2Di - the index of the point (starting from 0)
public void setClosed(boolean closed)
closed - visibility: true - visible, false - notpublic boolean isClosed()
true - closed, false - open
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||