Package com.reportmill.graphics
Class RMHarvardRuleStroke
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.graphics.RMFill
- 
- com.reportmill.graphics.RMStroke
- 
- com.reportmill.graphics.RMHarvardRuleStroke
 
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMHarvardRuleStroke extends RMStroke 
- 
- 
Field SummaryFields Modifier and Type Field Description static intINNER_RULE_ON_PATHstatic intOUTER_RULE_ON_PATHstatic intRULE_GAP_ON_PATHstatic intRULES_CENTERED_ABOUT_PATH
 - 
Constructor SummaryConstructors Constructor Description RMHarvardRuleStroke()Creates a new plain harvard rule stroke.RMHarvardRuleStroke(RMColor col, float w)Creates a new harvard rule stroke.RMHarvardRuleStroke(RMColor col, float outerW, float innerW, float separation, int positions)Creates a new harvard rule stroke.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMStrokederiveStroke(float aWidth)Returns a stroke just like the receiver, except with the new given line width.RMStrokederiveStroke(RMColor aColor)Returns a stroke just like the receiver, except with the new given color.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMFillgetChild(int anIndex)Returns the individual stroke at the given index.intgetChildCount()Returns the number of child strokes.floatgetInnerRuleWidth()Returns the inner rule width.floatgetOuterRuleWidth()Returns the outer rule width.intgetRulePositions()Returns the harvard rule stroke rule positions.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.reportmill.graphics.RMStrokeequals, getBounds, getLineWidth, getPath, initWithArchiver, paintShape
 - 
Methods inherited from class com.reportmill.graphics.RMFillderiveFill, getColor, setColor
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Field Detail- 
OUTER_RULE_ON_PATHpublic static final int OUTER_RULE_ON_PATH - See Also:
- Constant Field Values
 
 - 
INNER_RULE_ON_PATHpublic static final int INNER_RULE_ON_PATH - See Also:
- Constant Field Values
 
 - 
RULES_CENTERED_ABOUT_PATHpublic static final int RULES_CENTERED_ABOUT_PATH - See Also:
- Constant Field Values
 
 - 
RULE_GAP_ON_PATHpublic static final int RULE_GAP_ON_PATH - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RMHarvardRuleStrokepublic RMHarvardRuleStroke() Creates a new plain harvard rule stroke.
 - 
RMHarvardRuleStrokepublic RMHarvardRuleStroke(RMColor col, float w) Creates a new harvard rule stroke.
 - 
RMHarvardRuleStrokepublic RMHarvardRuleStroke(RMColor col, float outerW, float innerW, float separation, int positions) Creates a new harvard rule stroke.
 
- 
 - 
Method Detail- 
getRulePositionspublic int getRulePositions() Returns the harvard rule stroke rule positions.
 - 
getInnerRuleWidthpublic float getInnerRuleWidth() Returns the inner rule width.
 - 
getOuterRuleWidthpublic float getOuterRuleWidth() Returns the outer rule width.
 - 
deriveStrokepublic RMStroke deriveStroke(RMColor aColor) Returns a stroke just like the receiver, except with the new given color.- Overrides:
- deriveStrokein class- RMStroke
 
 - 
deriveStrokepublic RMStroke deriveStroke(float aWidth) Returns a stroke just like the receiver, except with the new given line width.- Overrides:
- deriveStrokein class- RMStroke
 
 - 
getChildCountpublic int getChildCount() Returns the number of child strokes.- Overrides:
- getChildCountin class- RMFill
 
 - 
getChildpublic RMFill getChild(int anIndex) Returns the individual stroke at the given index.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 
- 
 
-