|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mebigfatguy.patchanim.PatchAnimDocument
public class PatchAnimDocument
represents the document that can be saved to file.
Constructor Summary | |
---|---|
PatchAnimDocument(int patchOrder,
boolean alpha)
constructs a new document for the New menu item |
Method Summary | |
---|---|
AnimationType |
getAnimationType()
gets the preferred animation type to use for the animation files |
int |
getHeight()
gets the height in pixels of the generated animation file |
int |
getOrder()
returns the order of the bezier patch used for this document |
OutOfBoundsColor |
getOutOfBoundsColor()
gets the algorithm to use when a color is beyond the 0 - 255 range |
java.util.List<CombinedPatch> |
getPatches()
retrieves a list of all the bezier patches |
int |
getTweenCount()
gets the preferred number of in-between frames to generate when creating animations |
TweenStyle |
getTweenStyle()
gets the algorithm used to tween between one patch and another |
int |
getWidth()
returns the preferred width in pixels of the generated animation file |
boolean |
isDirty()
determines if the document has been modified since it was last saved |
void |
setAnimationType(AnimationType animationType)
sets the preferred animation type to use for animation files |
void |
setDirty(boolean isDirty)
marks whether or not the document has been modified. |
void |
setHeight(int height)
sets the height in pixels of the gnerated animation files |
void |
setOutOfBoundsColor(OutOfBoundsColor outOfBoundsColor)
sets the algorithm to use when a color is beyond the 0 - 255 range |
void |
setPatches(java.util.List<CombinedPatch> patches)
sets the list of bezier patches to use for color blends |
void |
setTweenCount(int tweenCount)
sets the preferred number of in-between frames to generate when creating animations |
void |
setTweenStyle(TweenStyle tweenStyle)
sets the algorithm used to tween between one patch and another |
void |
setWidth(int width)
sets the preferred width in pixels of generated animation files |
boolean |
useAlpha()
returns whether to use the alpha channel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatchAnimDocument(int patchOrder, boolean alpha)
Method Detail |
---|
public boolean isDirty()
public void setDirty(boolean isDirty)
isDirty
- whether or not the document has been modifiedpublic int getOrder()
public boolean useAlpha()
public java.util.List<CombinedPatch> getPatches()
public void setPatches(java.util.List<CombinedPatch> patches)
patches
- the list of bezier patchespublic int getWidth()
public void setWidth(int width)
width
- the width in pixelspublic int getHeight()
public void setHeight(int height)
height
- the height in pixelspublic AnimationType getAnimationType()
public void setAnimationType(AnimationType animationType)
animationType
- the preferred animation typepublic OutOfBoundsColor getOutOfBoundsColor()
public void setOutOfBoundsColor(OutOfBoundsColor outOfBoundsColor)
outOfBoundsColor
- the algorithm choice to use for out of bounds colorspublic int getTweenCount()
public void setTweenCount(int tweenCount)
tweenCount
- the number of in-between framespublic TweenStyle getTweenStyle()
public void setTweenStyle(TweenStyle tweenStyle)
tweenStyle
- the tween algorithm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |