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(XMLArchiver anArchiver,
XMLElement anElement)
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.
|
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Override to paint inner and outer strokes.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
getDashArray, getDashArray, getDashArrayString, getDashArrayString, getDashPhase, getName, getStrokePath, getWidth, setColor, setDashArray, setDashArrayString, setDashPhase, setWidth
deriveFill, getColor, hasAlpha, toString
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 float getInnerRuleWidth()
public float getOuterRuleWidth()
public RMStroke getOuterStroke()
public RMStroke getInnerStroke()
public RMRect getBounds(RMShape aShape)
public void paint(RMShapePainter aPntr, RMShape aShape)
public boolean equals(java.lang.Object anObj)
public RMDoubleStroke clone()
public XMLElement toXML(XMLArchiver anArchiver)