|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiMultiPointShape
| Field Summary |
| Constructor Summary | |
MiMultiPointShape()
|
|
| Method Summary | |
void |
appendPoint(double x,
double y)
Append another point to the points that define the shape of this MiPart. |
void |
appendPoints(double[] xPts,
double[] yPts,
int numPoints)
|
void |
copy(MiPart source)
Copy the state of this MiPart into the target MiPart. |
boolean |
getMaintainOrthogonality()
Gets whether the points in this shape should remain in their horizontal and vertical positionings. |
int |
getNumberOfPoints()
Gets the number of points that define the shape of this MiPart. |
MiPoint |
getPoint(int pointNum)
Gets the location of the point with the given number. |
void |
getPoint(int pointNum,
MiPoint point)
Gets the location of the point with the given number. |
double |
getPointEntryAngle(int pointNumber)
Get the angle of the shape as it enters the point with the given number. |
double |
getPointExitAngle(int pointNumber)
Get the angle of the shape as it exits the point with the given number. |
double |
getPointX(int pointNum)
Gets the location of the point with the given number. |
double |
getPointY(int pointNum)
Gets the location of the point with the given number. |
MiPropertyDescriptions |
getPropertyDescriptions()
Gets the descriptions of all of the properties. |
java.lang.String |
getPropertyValue(java.lang.String name)
Gets the textual value of the property with the given name. |
void |
insertPoint(double x,
double y,
int pointNum)
Insert another point to the points that define the shape of this MiPart. |
boolean |
isHorizontal()
|
boolean |
isVertical()
|
MiiManipulator |
makeManipulator()
Makes a manipulator for this MiPart. |
void |
removePoint(int pointNum)
Remove the point with the given number. |
void |
setMaintainOrthogonality(boolean flag)
Specifies whether the points in this shape should remain in their horizontal and vertical positionings. |
void |
setNumberOfPoints(int number)
|
void |
setPoint(int pointNum,
double x,
double y)
Sets the location of the point with the given number. |
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets the property with the given name to the given value. |
java.lang.String |
toString()
Returns information about this MiPart. |
void |
translatePoint(int pointNum,
double tx,
double ty)
Moves the location of the point with the given number. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MiMultiPointShape()
| Method Detail |
public int getNumberOfPoints()
getNumberOfPoints in class MiPartpublic void setNumberOfPoints(int number)
setNumberOfPoints in class MiPart
public void setPoint(int pointNum,
double x,
double y)
setPoint in class MiPartpointNum - the number of the pointx - the new x coordinate of the pointy - the new y coordinate of the point
public void translatePoint(int pointNum,
double tx,
double ty)
translatePoint in class MiPartpointNum - the number of the pointtx - the new x translation of the pointty - the new y translation of the pointpublic MiPoint getPoint(int pointNum)
getPoint in class MiPartpointNum - the number of the point
public double getPointX(int pointNum)
getPointX in class MiPartpointNum - the number of the point
public double getPointY(int pointNum)
getPointY in class MiPartpointNum - the number of the point
public void getPoint(int pointNum,
MiPoint point)
getPoint in class MiPartpointNum - the number of the pointpoint - the (returned) coordinates of the
point
public void appendPoint(double x,
double y)
appendPoint in class MiPartx - the x coord of the point to be appendedy - the y coord of the point to be appended
public void insertPoint(double x,
double y,
int pointNum)
insertPoint in class MiPartx - the x coord of the point to be appendedy - the y coord of the point to be appendedpointNum - the index of the point to insert
this new point beforepublic void removePoint(int pointNum)
removePoint in class MiPartpointNum - the number of the pointpublic double getPointExitAngle(int pointNumber)
getPointExitAngle in class MiPartpublic double getPointEntryAngle(int pointNumber)
getPointEntryAngle in class MiPart
public void appendPoints(double[] xPts,
double[] yPts,
int numPoints)
public void setMaintainOrthogonality(boolean flag)
flag - true if translatePoint will maintain
orthogonalitypublic boolean getMaintainOrthogonality()
public boolean isVertical()
public boolean isHorizontal()
public MiiManipulator makeManipulator()
makeManipulator in class MiPartpublic void copy(MiPart source)
copy in class MiPartsource - the part to copyMiPart.copy()public java.lang.String toString()
toString in class MiPart
public void setPropertyValue(java.lang.String name,
java.lang.String value)
setPropertyValue in class MiPartname - the name of an propertyvalue - the value of the propertypublic java.lang.String getPropertyValue(java.lang.String name)
getPropertyValue in class MiPartname - the name of a property
public MiPropertyDescriptions getPropertyDescriptions()
getPropertyDescriptions in class MiPart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||