public class RMHarvardRuleStroke extends RMStroke
Modifier and Type | Field and 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 and 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.
|
Modifier and Type | Method and 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.
|
equals, getBounds, getLineWidth, getPath, initWithArchiver, paintShape
deriveFill, getColor, setColor
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
public static final int OUTER_RULE_ON_PATH
public static final int INNER_RULE_ON_PATH
public static final int RULES_CENTERED_ABOUT_PATH
public static final int RULE_GAP_ON_PATH
public RMHarvardRuleStroke()
public RMHarvardRuleStroke(RMColor col, float w)
public RMHarvardRuleStroke(RMColor col, float outerW, float innerW, float separation, int positions)
public int getRulePositions()
public float getInnerRuleWidth()
public float getOuterRuleWidth()
public RMStroke deriveStroke(RMColor aColor)
deriveStroke
in class RMStroke
public RMStroke deriveStroke(float aWidth)
deriveStroke
in class RMStroke
public int getChildCount()
getChildCount
in class RMFill
public RMFill getChild(int anIndex)
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)