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 int
INNER_RULE_ON_PATH
static int
OUTER_RULE_ON_PATH
static int
RULE_GAP_ON_PATH
static int
RULES_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 RMStroke
deriveStroke(float aWidth)
Returns a stroke just like the receiver, except with the new given line width.RMStroke
deriveStroke(RMColor aColor)
Returns a stroke just like the receiver, except with the new given color.java.lang.Object
fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.RMFill
getChild(int anIndex)
Returns the individual stroke at the given index.int
getChildCount()
Returns the number of child strokes.float
getInnerRuleWidth()
Returns the inner rule width.float
getOuterRuleWidth()
Returns the outer rule width.int
getRulePositions()
Returns the harvard rule stroke rule positions.RXElement
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 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:
deriveStroke
in classRMStroke
-
deriveStroke
public RMStroke deriveStroke(float aWidth)
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
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.
-
-