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,- Cloneable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructorsConstructorDescriptionCreates 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 SummaryModifier and TypeMethodDescriptionderiveStroke(float aWidth) Returns a stroke just like the receiver, except with the new given line width.deriveStroke(RMColor aColor) Returns a stroke just like the receiver, except with the new given color.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getChild(int anIndex) Returns the individual stroke at the given index.intReturns the number of child strokes.floatReturns the inner rule width.floatReturns the outer rule width.intReturns the harvard rule stroke rule positions.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.reportmill.graphics.RMStrokeequals, getBounds, getLineWidth, getPath, initWithArchiver, paintShapeMethods inherited from class com.reportmill.graphics.RMFillderiveFill, getColor, setColorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
- 
Field Details- 
OUTER_RULE_ON_PATHpublic static final int OUTER_RULE_ON_PATH- See Also:
 
- 
INNER_RULE_ON_PATHpublic static final int INNER_RULE_ON_PATH- See Also:
 
- 
RULES_CENTERED_ABOUT_PATHpublic static final int RULES_CENTERED_ABOUT_PATH- See Also:
 
- 
RULE_GAP_ON_PATHpublic static final int RULE_GAP_ON_PATH- See Also:
 
 
- 
- 
Constructor Details- 
RMHarvardRuleStrokepublic RMHarvardRuleStroke()Creates a new plain harvard rule stroke.
- 
RMHarvardRuleStrokeCreates a new harvard rule stroke.
- 
RMHarvardRuleStrokepublic RMHarvardRuleStroke(RMColor col, float outerW, float innerW, float separation, int positions) Creates a new harvard rule stroke.
 
- 
- 
Method Details- 
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.
- 
deriveStrokeReturns a stroke just like the receiver, except with the new given color.- Overrides:
- deriveStrokein class- RMStroke
 
- 
deriveStrokeReturns 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
 
- 
getChildReturns the individual stroke at the given index.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-