|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.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 MagicLens
public void setEnabled(boolean set)
MagicLens
setEnabled
in interface MagicLens
set
- the enabled state to setpublic Rectangle2D getBounds()
MagicLens
getBounds
in interface MagicLens
public void setLens(float x, float y)
MagicLens
setLens
in interface MagicLens
x
- X coordinate of the positiony
- X coordinate of the positionpublic float getLensX()
MagicLens
getLensX
in interface MagicLens
public float getLensY()
MagicLens
getLensY
in interface MagicLens
public void setLensX(float focusX)
MagicLens
setLensX
in interface MagicLens
focusX
- The lest X to setpublic void setLensY(float focusY)
MagicLens
setLensY
in interface MagicLens
focusY
- The lens Y to setpublic float getLensRadius()
MagicLens
getLensRadius
in interface MagicLens
public void setLensRadius(float focusRadius)
MagicLens
setLensRadius
in interface MagicLens
focusRadius
- the new radius.public void addPropertyChangeListener(PropertyChangeListener l)
MagicLens
addPropertyChangeListener
in interface MagicLens
l
- The PropertyChangeListener to be addedpublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
MagicLens
addPropertyChangeListener
in interface MagicLens
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener l)
MagicLens
removePropertyChangeListener
in interface MagicLens
l
- The PropertyChangeListener to be removedpublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
MagicLens
removePropertyChangeListener
in interface MagicLens
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removedpublic 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 |