public class RMDoubleStroke 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 |
---|
RMDoubleStroke()
Creates a new plain double stroke.
|
RMDoubleStroke(RMColor col,
float w)
Creates a new double stroke.
|
RMDoubleStroke(RMColor col,
float outerW,
float innerW,
float separation,
int positions)
Creates a new double stroke.
|
Modifier and Type | Method and Description |
---|---|
RMDoubleStroke |
clone()
Standard clone implementation.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement e)
XML unarchival.
|
RMRect |
getBounds(RMShape aShape)
Returns the bounds required to render this fill for this shape.
|
float |
getInnerRuleWidth()
Returns the inner rule width.
|
RMStroke |
getInnerStroke()
Return the stroke used on the inside of a clockwise path
|
float |
getOuterRuleWidth()
Returns the outer rule width.
|
RMStroke |
getOuterStroke()
Return the stroke used on the outside of a clockwise path
|
int |
getRulePositions()
Returns the double stroke rule positions.
|
float |
getRuleSeparation() |
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Override to paint inner and outer strokes.
|
protected void |
readAttributes(RXElement e) |
void |
setInnerRuleWidth(float _innerRuleWidth) |
void |
setOuterRuleWidth(float _outerRuleWidth) |
void |
setRulePositions(int _rulePositions) |
void |
setRuleSeparation(float _ruleSeparation) |
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
getDashArray, getDashArray, getDashArrayString, getDashArrayString, getDashPhase, getName, getStroke, getStrokePath, getWidth, setColor, setDashArray, setDashArrayString, setDashPhase, setWidth
deriveFill, getColor, hasAlpha, toString
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
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 RMDoubleStroke()
public RMDoubleStroke(RMColor col, float w)
public RMDoubleStroke(RMColor col, float outerW, float innerW, float separation, int positions)
public int getRulePositions()
public void setRulePositions(int _rulePositions)
public float getInnerRuleWidth()
public void setInnerRuleWidth(float _innerRuleWidth)
public float getOuterRuleWidth()
public void setOuterRuleWidth(float _outerRuleWidth)
public RMStroke getOuterStroke()
public RMStroke getInnerStroke()
public float getRuleSeparation()
public void setRuleSeparation(float _ruleSeparation)
public RMRect getBounds(RMShape aShape)
public void paint(RMShapePainter aPntr, RMShape aShape)
public boolean equals(java.lang.Object anObj)
public RMDoubleStroke clone()
public RXElement toXML(RXArchiver anArchiver)
toXML
in interface Archivable
toXML
in class RMStroke
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement e)
fromXML
in interface Archivable
fromXML
in class RMStroke
protected void readAttributes(RXElement e)
readAttributes
in class RMStroke