public class MorphLineStyle2 extends MorphLineStyle
DefineMorphShape2Tag
not DefineMorphShapeTag
.
While the MORPHLINESTYLE record permits only rounded joins and round caps, MORPHLINESTYLE2 also supports miter and bevel joins, and square caps and no caps. For an illustration of the available joins and caps, see the diagram in the LINESTYLE2 description.
When using MORPHLINESTYLE for a miter join, a MiterLimitFactor must be specified and is used along with StartWidth or EndWidth to calculate the maximum miter length: Max miter length = MORPHLINESTYLE2 MiterLimitFactor * MORPHLINESTYLE2 Width
If the miter join exceeds the maximum miter length, Flash Player will cut off the miter. Note that MiterLimitFactor is an 8.8 fixed-point value.
MORPHLINESTYLE2 also includes the option for pixel hinting in order to correct blurry vertical or horizontal lines.
Constructor and Description |
---|
MorphLineStyle2() |
Modifier and Type | Method and Description |
---|---|
int |
getEndCapStyle()
Get end cap style.
|
MorphFillStyle |
getFillType()
Get fill type.
|
int |
getJoinStyle()
Get join style.
|
int |
getMiterLimitFactor()
Get miter limit factor.
|
int |
getStartCapStyle()
Get start-cap style.
|
boolean |
isHasFillFlag()
Get fill flag.
|
boolean |
isNoClose()
Get is not closed.
|
boolean |
isNoHScaleFlag()
If true, stroke thickness will not scale if the object is scaled
horizontally.
|
boolean |
isNoVScaleFlag()
If true, stroke thickness will not scale if the object is scaled
vertically.
|
boolean |
isPixelHintingFlag()
Get pixel hinting flag.
|
void |
setEndCapStyle(int value)
Set end cap style.
|
void |
setFillType(MorphFillStyle value)
Set fill type.
|
void |
setHasFillFlag(boolean value)
Set has fill flag.
|
void |
setJoinStyle(int value)
Set join style.
|
void |
setMiterLimitFactor(int value)
Set miter limit factor.
|
void |
setNoClose(boolean value)
Set no close.
|
void |
setNoHScaleFlag(boolean value)
If true, stroke thickness will not scale if the object is scaled
horizontally.
|
void |
setNoVScaleFlag(boolean value)
If true, stroke thickness will not scale if the object is scaled
vertically.
|
void |
setPixelHintingFlag(boolean value)
Set pixel hinting flag.
|
void |
setStartCapStyle(int value)
Set start-cap style.
|
getEndColor, getEndWidth, getStartColor, getStartWidth, setEndColor, setEndWidth, setStartColor, setStartWidth
public int getStartCapStyle()
public void setStartCapStyle(int value)
value
- the startCapStyle to setpublic int getJoinStyle()
public void setJoinStyle(int value)
value
- the joinStyle to setpublic boolean isHasFillFlag()
public void setHasFillFlag(boolean value)
value
- the hasFillFlag to setpublic boolean isNoHScaleFlag()
public void setNoHScaleFlag(boolean value)
value
- the noHScaleFlag to setpublic boolean isNoVScaleFlag()
public void setNoVScaleFlag(boolean value)
value
- the noVScaleFlag to setpublic boolean isPixelHintingFlag()
public void setPixelHintingFlag(boolean value)
value
- the pixelHintingFlag to setpublic boolean isNoClose()
public void setNoClose(boolean value)
value
- the noClose to setpublic int getEndCapStyle()
public void setEndCapStyle(int value)
value
- the endCapStyle to setpublic int getMiterLimitFactor()
public void setMiterLimitFactor(int value)
value
- the miterLimitFactor to setpublic MorphFillStyle getFillType()
public void setFillType(MorphFillStyle value)
value
- the fillType to setCopyright © 2016 The Apache Software Foundation. All rights reserved.