public class DefineMorphShape2Tag extends DefineMorphShapeTag
DefineMorphShape2
tag in a SWF file.
The DefineMorphShape2 tag extends the capabilities of DefineMorphShape by using a new morph line style record in the morph shape. MORPHLINESTYLE2 allows the use of new types of joins and caps as well as scaling options and the ability to fill the strokes of the morph shape.
DefineMorphShape2 specifies not only the shape bounds but also the edge bounds of the shape. While the shape bounds are calculated along the outside of the strokes, the edge bounds are taken from the outside of the edges. For an example of shape bounds versus edge bounds, see the diagram in DefineShape4. The new StartEdgeBounds and EndEdgeBounds fields assist Flash Player in accurately determining certain layouts.
In addition, DefineMorphShape2 includes new hinting information, UsesNonScalingStrokes and UsesScalingStrokes. These flags assist Flash Player in creating the best possible area for invalidation.
Constructor and Description |
---|
DefineMorphShape2Tag()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Rect |
getEndEdgeBounds()
Bounds of the end shape, excluding strokes.
|
Rect |
getStartEdgeBounds()
Bounds of the start shape, excluding strokes.
|
boolean |
isUsesNonScalingStrokes()
If true, the shape contains at least one non-scaling stroke.
|
boolean |
isUsesScalingStrokes()
If true, the shape contains at least one scaling stroke.
|
void |
setEndEdgeBounds(Rect value)
Set end edge bounds.
|
void |
setStartEdgeBounds(Rect value)
Set start edge bounds.
|
void |
setUsesNonScalingStrokes(boolean value)
Set uses non-scaling strokes.
|
void |
setUsesScalingStrokes(boolean value)
Set uses scaling strokes.
|
getEndBounds, getEndEdges, getOffset, getReferences, getStartBounds, getStartEdges, setEndBounds, setEndEdges, setOffset, setStartBounds, setStartEdges
description, getCharacterID, setCharacterID
getTagType, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTagType
public Rect getStartEdgeBounds()
public void setStartEdgeBounds(Rect value)
value
- the startEdgeBounds to setpublic Rect getEndEdgeBounds()
public void setEndEdgeBounds(Rect value)
value
- the endEdgeBounds to setpublic boolean isUsesNonScalingStrokes()
public void setUsesNonScalingStrokes(boolean value)
value
- the usesNonScalingStrokes to setpublic boolean isUsesScalingStrokes()
public void setUsesScalingStrokes(boolean value)
value
- the usesSCalingStrokes to setCopyright © 2016 The Apache Software Foundation. All rights reserved.