public abstract class ShapeMultiplePoints extends ShapeLineFill implements Path3D
UNKNOWN_NAME
Constructor and Description |
---|
ShapeMultiplePoints() |
Modifier and Type | Method and Description |
---|---|
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.
|
double |
getPointDz(int i)
Returns the z 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 |
setPoint(int i,
double ptdx,
double ptdy,
double ptdz)
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.
|
void |
setPointDz(int i,
double ptdz)
Sets the z coordinate of a particular point of the shape relative to the start point.
|
getFillColor, getFillTexture, getLineColor, getLineStyle, getLineTexture, getLineWidth, getPresentable, getZHeight, getZOffset, postSVGShapeSpecificAttributes, setContextReference_xjal, setFillColor, setFillColor, setLineColor, setLineColor, setLineStyle, setLineWidth, setZHeight
canHandleClick, getDrawMode, getScaleZ, getZ, setDrawMode, setPos, setPos, setPos, setRotation, setScale, setScale, setScaleZ, setZ
clone, contains, executeUserAction, findSVGElement, getGroup, getName, getRotation, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isSVGPresentation, isVisible, onClick, randomPointInside, randomPointInside, removeSVGImage, resetSVGState, restoreOwner, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getZOffset
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 pointpublic void setPoint(int i, double ptdx, double ptdy, double ptdz)
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 pointptdz
- the new z coordinate of the point relative to the start pointpublic 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 Path2D
i
- 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 Path2D
i
- the index of the point (starting from 0)public void setPointDz(int i, double ptdz)
i
- the index of the point (starting from 0)ptdz
- the new z coordinate of the point relative to the start pointpublic double getPointDz(int i)
getPointDz
in interface Path3D
i
- the index of the point (starting from 0)public void setClosed(boolean closed)
closed
- true
- closed, false
- openpublic boolean isClosed()
true
- closed, false
- openCopyright © AnyLogic North America, LLC. All Rights Reserved.