|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.visualization.magicLens.DefaultMagicLens
public class DefaultMagicLens
Class DefaultMagicLens
| Field Summary |
|---|
| Fields inherited from interface infovis.visualization.MagicLens |
|---|
PROPERTY_ENABLED, PROPERTY_LENS_POSITION_X, PROPERTY_LENS_POSITION_Y, PROPERTY_LENS_RADIUS |
| Constructor Summary | |
|---|---|
DefaultMagicLens()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
void |
firePropertyChange(String property,
boolean oldV,
boolean newV)
|
void |
firePropertyChange(String property,
float oldV,
float newV)
|
void |
firePropertyChange(String property,
int oldV,
int newV)
|
void |
firePropertyChange(String property,
Object oldV,
Object newV)
|
Rectangle2D |
getBounds()
Returns the bounds of the transformed coordinates. |
float |
getLensRadius()
Returns the lens radius. |
float |
getLensX()
Returns the lens X center position. |
float |
getLensY()
Returns the lens Y center position. |
boolean |
isEnabled()
Returns whether this magic lens is enabled. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
void |
setEnabled(boolean set)
Sets the enabled state of the magic lens. |
void |
setLens(float x,
float y)
Sets for focus position |
void |
setLensRadius(float focusRadius)
Sets the lens radius. |
void |
setLensX(float focusX)
Sets the lensX. |
void |
setLensY(float focusY)
Sets the lensY. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMagicLens()
| Method Detail |
|---|
public boolean isEnabled()
MagicLens
isEnabled in interface MagicLenspublic void setEnabled(boolean set)
MagicLens
setEnabled in interface MagicLensset - the enabled state to setpublic Rectangle2D getBounds()
MagicLens
getBounds in interface MagicLens
public void setLens(float x,
float y)
MagicLens
setLens in interface MagicLensx - X coordinate of the positiony - X coordinate of the positionpublic float getLensX()
MagicLens
getLensX in interface MagicLenspublic float getLensY()
MagicLens
getLensY in interface MagicLenspublic void setLensX(float focusX)
MagicLens
setLensX in interface MagicLensfocusX - The lest X to setpublic void setLensY(float focusY)
MagicLens
setLensY in interface MagicLensfocusY - The lens Y to setpublic float getLensRadius()
MagicLens
getLensRadius in interface MagicLenspublic void setLensRadius(float focusRadius)
MagicLens
setLensRadius in interface MagicLensfocusRadius - the new radius.public void addPropertyChangeListener(PropertyChangeListener l)
MagicLens
addPropertyChangeListener in interface MagicLensl - The PropertyChangeListener to be added
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
MagicLens
addPropertyChangeListener in interface MagicLenspropertyName - The name of the property to listen on.listener - The PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener l)
MagicLens
removePropertyChangeListener in interface MagicLensl - The PropertyChangeListener to be removed
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
MagicLens
removePropertyChangeListener in interface MagicLenspropertyName - The name of the property that was listened on.listener - The PropertyChangeListener to be removed
public void firePropertyChange(String property,
Object oldV,
Object newV)
public void firePropertyChange(String property,
int oldV,
int newV)
public void firePropertyChange(String property,
float oldV,
float newV)
public void firePropertyChange(String property,
boolean oldV,
boolean newV)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||