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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 Summary
Modifier 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.int
Returns the number of child strokes.float
Returns the inner rule width.float
Returns the outer rule width.int
Returns the harvard rule stroke rule positions.toXML
(RXArchiver anArchiver) XML archival.Methods inherited from class com.reportmill.graphics.RMStroke
equals, getBounds, getLineWidth, getPath, initWithArchiver, paintShape
Methods inherited from class com.reportmill.graphics.RMFill
deriveFill, getColor, setColor
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
-
Field Details
-
OUTER_RULE_ON_PATH
public static final int OUTER_RULE_ON_PATH- See Also:
-
INNER_RULE_ON_PATH
public static final int INNER_RULE_ON_PATH- See Also:
-
RULES_CENTERED_ABOUT_PATH
public static final int RULES_CENTERED_ABOUT_PATH- See Also:
-
RULE_GAP_ON_PATH
public static final int RULE_GAP_ON_PATH- See Also:
-
-
Constructor Details
-
RMHarvardRuleStroke
public RMHarvardRuleStroke()Creates a new plain harvard rule stroke. -
RMHarvardRuleStroke
Creates a new harvard rule stroke. -
RMHarvardRuleStroke
public RMHarvardRuleStroke(RMColor col, float outerW, float innerW, float separation, int positions) Creates a new harvard rule stroke.
-
-
Method Details
-
getRulePositions
public int getRulePositions()Returns the harvard rule stroke rule positions. -
getInnerRuleWidth
public float getInnerRuleWidth()Returns the inner rule width. -
getOuterRuleWidth
public float getOuterRuleWidth()Returns the outer rule width. -
deriveStroke
Returns a stroke just like the receiver, except with the new given color.- Overrides:
deriveStroke
in classRMStroke
-
deriveStroke
Returns a stroke just like the receiver, except with the new given line width.- Overrides:
deriveStroke
in classRMStroke
-
getChildCount
public int getChildCount()Returns the number of child strokes.- Overrides:
getChildCount
in classRMFill
-
getChild
Returns the individual stroke at the given index. -
toXML
XML archival. -
fromXML
XML unarchival.
-