|
ReportMill 11 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
public class RMLineSegment
This class represents a simple line shape, drawing a line from a start point to an end point.
Field Summary |
---|
Fields inherited from class com.reportmill.shape.RMShape |
---|
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 | |
---|---|
boolean |
childrenSuperSelectImmediately()
Override to prevent arrow heads from selecting. |
java.lang.Object |
fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival. |
com.reportmill.shape.RMLineSegmentArrowHead |
getArrowHead()
Returns the line segment arrow head. |
RMPath |
getPath()
Returns the line path. |
void |
setArrowHead(com.reportmill.shape.RMLineSegmentArrowHead anArrowHead)
Sets the line segment arrow head. |
void |
setHeight(float aHeight)
Override to prevent width from going to zero. |
void |
setLineWidth(float aValue)
Override to handle arrow heads special. |
void |
setStroke(RMStroke aStroke)
Override to handle arrow heads special. |
void |
setStrokeColor(RMColor aColor)
Override to handle arrow heads special. |
void |
setWidth(float aWidth)
Override to prevent width from going to zero. |
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival. |
void |
validate()
Overridden to position arrow heads. |
Methods inherited from class com.reportmill.base.RMObject |
---|
addListener, addPropertyChangeListener, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RMLineSegment()
public RMLineSegment(float x1, float y1, float x2, float y2)
Method Detail |
---|
public RMPath getPath()
getPath
in class RMShape
public com.reportmill.shape.RMLineSegmentArrowHead getArrowHead()
public void setArrowHead(com.reportmill.shape.RMLineSegmentArrowHead anArrowHead)
public boolean childrenSuperSelectImmediately()
childrenSuperSelectImmediately
in class RMShape
public void setStroke(RMStroke aStroke)
setStroke
in class RMShape
public void setStrokeColor(RMColor aColor)
setStrokeColor
in class RMShape
public void setLineWidth(float aValue)
setLineWidth
in class RMShape
public void validate()
validate
in class RMShape
public void setWidth(float aWidth)
setWidth
in class RMShape
public void setHeight(float aHeight)
setHeight
in class RMShape
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMShape
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMShape
|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |