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 Summary
Fields Modifier and Type Field Description static intINNER_RULE_ON_PATHstatic intOUTER_RULE_ON_PATHstatic intRULE_GAP_ON_PATHstatic intRULES_CENTERED_ABOUT_PATH
-
Constructor Summary
Constructors 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 Summary
All 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.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 Detail
-
OUTER_RULE_ON_PATH
public static final int OUTER_RULE_ON_PATH
- See Also:
- Constant Field Values
-
INNER_RULE_ON_PATH
public static final int INNER_RULE_ON_PATH
- See Also:
- Constant Field Values
-
RULES_CENTERED_ABOUT_PATH
public static final int RULES_CENTERED_ABOUT_PATH
- See Also:
- Constant Field Values
-
RULE_GAP_ON_PATH
public static final int RULE_GAP_ON_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RMHarvardRuleStroke
public RMHarvardRuleStroke()
Creates a new plain harvard rule stroke.
-
RMHarvardRuleStroke
public RMHarvardRuleStroke(RMColor col, float w)
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 Detail
-
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
public RMStroke deriveStroke(RMColor aColor)
Returns a stroke just like the receiver, except with the new given color.- Overrides:
deriveStrokein classRMStroke
-
deriveStroke
public RMStroke deriveStroke(float aWidth)
Returns a stroke just like the receiver, except with the new given line width.- Overrides:
deriveStrokein classRMStroke
-
getChildCount
public int getChildCount()
Returns the number of child strokes.- Overrides:
getChildCountin classRMFill
-
getChild
public RMFill getChild(int anIndex)
Returns the individual stroke at the given index.
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.
-
-