|
ReportMill 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.reportmill.foundation.RMObject
com.reportmill.shape.RMShape
com.reportmill.shape.RMLineSegment
This class represents a simple line shape, drawing a line from a start point to an end point.
| Field Summary | |
static byte |
HandleEndPoint
|
static byte |
HandleStartPoint
|
| Fields inherited from class com.reportmill.shape.RMShape |
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth |
| Constructor Summary | |
RMLineSegment()
Creates a basic line (a point actually at 0,0). |
|
RMLineSegment(float startX,
float startY,
float endX,
float endY)
Creates a basic black line from the given x1, y1 to the given x2, y2. |
|
RMLineSegment(RMPoint start,
RMPoint end)
Creates a basic black line from the given start point to the given end point. |
|
| Method Summary | |
java.lang.Object |
fromXML(com.ribs.RXArchiver anArchiver,
com.ribs.RXElement anElement)
XML unarchival. |
RMPath |
getPath()
Returns the line path. |
int |
handleCount()
Editor method (returns the number of handles). |
RMPoint |
handlePoint(int i,
boolean iss)
Editor method. |
java.lang.Object |
initWithArchiver(com.reportmill.foundation.RMArchiver anArchiver)
Legacy archival. |
void |
moveHandleToPoint(int i,
RMPoint p)
Editor method. |
com.ribs.RXElement |
toXML(com.ribs.RXArchiver anArchiver)
XML archival. |
| Methods inherited from class com.reportmill.foundation.RMObject |
archiverClassName, didUndo, getAnimAttribute, getClassNameShort |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte HandleStartPoint
public static final byte HandleEndPoint
| Constructor Detail |
public RMLineSegment()
public RMLineSegment(RMPoint start,
RMPoint end)
public RMLineSegment(float startX,
float startY,
float endX,
float endY)
| Method Detail |
public RMPath getPath()
getPath in class RMShapepublic int handleCount()
handleCount in class RMShape
public RMPoint handlePoint(int i,
boolean iss)
handlePoint in class RMShape
public void moveHandleToPoint(int i,
RMPoint p)
moveHandleToPoint in class RMShapepublic java.lang.Object initWithArchiver(com.reportmill.foundation.RMArchiver anArchiver)
initWithArchiver in interface com.reportmill.foundation.RMArchiver.ArchivinginitWithArchiver in class RMShapepublic com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
toXML in class RMShape
public java.lang.Object fromXML(com.ribs.RXArchiver anArchiver,
com.ribs.RXElement anElement)
fromXML in class RMShape
|
ReportMill 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||