|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiContainer
com.swfm.mica.core.MiReference
| Field Summary |
| Constructor Summary | |
MiReference()
|
|
MiReference(MiPart obj)
|
|
| Method Summary | |
void |
appendPart(MiPart obj)
Appends the given part to this container. |
void |
draw(MiRenderer renderer)
Draws this MiPart. |
void |
flip(double radians)
Flips this MiPart about the axis specified by the given number of radians about the parts center. |
void |
flip(MiPoint center,
double radians)
Flips this MiPart about the axis specified by the given number of radians about the given point. |
MiBounds |
getInnerBounds(MiBounds b)
Gets the inner bounds of this MiPart. |
MiSnapPointManager |
getSnapPointManager()
Gets the MiSnapPointManager, if any, assigned to the referenced MiPart. |
MiiTransform |
getTransform()
Gets the transform, if any, assigned to this MiPart. |
boolean |
getUseRotateTransform()
|
boolean |
getUseScaleTransform()
|
boolean |
getUseTranslateTransform()
|
void |
insertPart(MiPart obj,
int index)
Inserts the given part at the given index into this container. |
void |
reCalcBounds(MiBounds bounds)
|
void |
rotate(double radians)
Rotates this MiPart the given number of radians about it's center. |
void |
rotate(MiPoint center,
double radians)
Rotates this MiPart the given number of radians about the given point. |
void |
scale(MiPoint center,
MiScale scale)
Scales the bounds of this MiPart by the given scale factor (multipliers). |
void |
setBounds(MiBounds newBounds)
Sets the bounds of this MiPart to have the given bounds. |
void |
setClipBounds(MiBounds b)
|
void |
setTransform(MiiTransform t)
|
void |
setUseRotateTransform(boolean flag)
Set this to false if moving something because center of rotation needs to move and rotation transform does not do that |
void |
setUseScaleTransform(boolean flag)
|
void |
setUseTranslateTransform(boolean flag)
|
void |
translate(double x,
double y)
Translates the bounds of this MiPart by the given x and y distances. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MiReference()
public MiReference(MiPart obj)
| Method Detail |
public void setTransform(MiiTransform t)
public MiiTransform getTransform()
MiPart
getTransform in class MiPartpublic void setUseScaleTransform(boolean flag)
public boolean getUseScaleTransform()
public void setUseTranslateTransform(boolean flag)
public boolean getUseTranslateTransform()
public void setUseRotateTransform(boolean flag)
public boolean getUseRotateTransform()
public void draw(MiRenderer renderer)
MiPart
draw in class MiPartrenderer - the renderer to use for drawingpublic void setClipBounds(MiBounds b)
public void translate(double x,
double y)
MiPart
translate in class MiPartx - the x distance to translatey - the y distance to translate
public void scale(MiPoint center,
MiScale scale)
MiPart
scale in class MiPartcenter - the center of the scalingscale - the scale factorpublic void rotate(double radians)
MiPart
rotate in class MiPartradians - the angle to rotate
public void rotate(MiPoint center,
double radians)
MiPart
rotate in class MiPartcenter - the center of rotationradians - the angle to rotatepublic void flip(double radians)
MiPart
flip in class MiPartradians - the angle of the axis of reflection
public void flip(MiPoint center,
double radians)
MiPart
flip in class MiPartcenter - the center of flipradians - the angle of the axis of reflectionpublic void setBounds(MiBounds newBounds)
MiPart
setBounds in class MiPartnewBounds - the new boundspublic void appendPart(MiPart obj)
MiContainer
appendPart in class MiContainerobj - the part to append
public void insertPart(MiPart obj,
int index)
MiContainer
insertPart in class MiContainerobj - the part to insertindex - where to insert the partpublic MiBounds getInnerBounds(MiBounds b)
MiPart
getInnerBounds in class MiPartb - the (returned) inner bounds
public void reCalcBounds(MiBounds bounds)
bounds - the (returned) outer boundspublic MiSnapPointManager getSnapPointManager()
getSnapPointManager in class MiPart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||