|
ReportMill 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.reportmill.base.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, WRAP_TYPE_BOTH, WRAP_TYPE_NONE |
| Constructor Summary | |
RMLineSegment()
Creates a basic line (a point actually at 0,0). |
|
RMLineSegment(float x1,
float y1,
float x2,
float y2)
Creates a basic black line from the given x1, y1 to the given x2, y2. |
|
| Method Summary | |
java.lang.Object |
fromXML(com.ribs.RXArchiver anArchiver,
com.ribs.RXElement anElement)
XML unarchival. |
int |
getHandleCount()
Editor method (returns the number of handles). |
RMPoint |
getHandlePoint(int i,
boolean iss)
Editor method. |
RMPath |
getPath()
Returns the line path. |
void |
moveHandleToPoint(int i,
RMPoint p)
Editor method. |
com.ribs.RXElement |
toXML(com.ribs.RXArchiver anArchiver)
XML archival. |
| Methods inherited from class com.reportmill.base.RMObject |
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(float x1,
float y1,
float x2,
float y2)
| Method Detail |
public RMPath getPath()
getPath in class RMShapepublic int getHandleCount()
getHandleCount in class RMShape
public RMPoint getHandlePoint(int i,
boolean iss)
getHandlePoint in class RMShape
public void moveHandleToPoint(int i,
RMPoint p)
moveHandleToPoint 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 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||