|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.view.effects.Effect
public class Effect
This class is the super class for effects like FishEyeEffect.
| Constructor Summary | |
|---|---|
Effect()
|
|
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds. |
java.awt.geom.Point2D |
getFocus()
Returns the focus point. |
float |
getSpeed()
Returns the speed. |
boolean |
isAutoUpdateOnDrag()
Returns true, when the focus point will be updated automatically on mouse drag. |
boolean |
isAutoUpdateOnMove()
Returns true, when the focus point will be updated automatically on mouse move. |
void |
moveFocus(double dx,
double dy)
Moves the focus point by the given values. |
void |
setAutoUpdateOnDrag(boolean autoUpdate)
|
void |
setAutoUpdateOnMove(boolean autoUpdate)
|
void |
setBounds(java.awt.geom.Rectangle2D bounds)
Sets the bounds. |
void |
setFocus(double x,
double y)
Sets the focus point. |
void |
setSpeed(float speed)
Sets the speed. |
java.awt.geom.Point2D.Float |
transformPoint(float x,
float y)
Transforms the given points. |
float |
transformSize(float size,
float x,
float y,
float newX,
float newY)
Transforms the given size. x,y are untransformed and newX, newY are the transformed coordinates. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Effect()
| Method Detail |
|---|
public float getSpeed()
public void setSpeed(float speed)
speed - the speed.
public java.awt.geom.Point2D.Float transformPoint(float x,
float y)
x - y -
public float transformSize(float size,
float x,
float y,
float newX,
float newY)
size - sizex - untransformed x coord.y - untransformed y coord.newX - transformed x coord.newY - transformed y coord.
public java.awt.geom.Rectangle2D getBounds()
public void setBounds(java.awt.geom.Rectangle2D bounds)
bounds - the bounds.public boolean isAutoUpdateOnMove()
public void setAutoUpdateOnMove(boolean autoUpdate)
public boolean isAutoUpdateOnDrag()
public void setAutoUpdateOnDrag(boolean autoUpdate)
public java.awt.geom.Point2D getFocus()
public void setFocus(double x,
double y)
x - x-coordinatey - y-coordinate
public void moveFocus(double dx,
double dy)
dx - delta xdy - delta y
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||