infovis.visualization
Interface MagicLens

All Known Subinterfaces:
ExcentricLabels, Fisheye
All Known Implementing Classes:
DefaultExcentricLabels, DefaultFisheye, DefaultMagicLens

public interface MagicLens

A MagicLens is a see through lens that performs a transformation on its contents.

Version:
$Revision: 1.3 $
Author:
Jean-Daniel Fekete

Field Summary
static String PROPERTY_ENABLED
           
static String PROPERTY_LENS_POSITION_X
           
static String PROPERTY_LENS_POSITION_Y
           
static String PROPERTY_LENS_RADIUS
           
 
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.
 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 radius)
          Sets the lens radius.
 void setLensX(float x)
          Sets the lensX.
 void setLensY(float y)
          Sets the lensY.
 

Field Detail

PROPERTY_LENS_POSITION_X

static final String PROPERTY_LENS_POSITION_X
See Also:
Constant Field Values

PROPERTY_LENS_POSITION_Y

static final String PROPERTY_LENS_POSITION_Y
See Also:
Constant Field Values

PROPERTY_LENS_RADIUS

static final String PROPERTY_LENS_RADIUS
See Also:
Constant Field Values

PROPERTY_ENABLED

static final String PROPERTY_ENABLED
See Also:
Constant Field Values
Method Detail

isEnabled

boolean isEnabled()
Returns whether this magic lens is enabled.

Returns:
whether this magic lens is enabled.

setEnabled

void setEnabled(boolean set)
Sets the enabled state of the magic lens.

Parameters:
set - the enabled state to set

getBounds

Rectangle2D getBounds()
Returns the bounds of the transformed coordinates. Coordintates outside these bounds are not transformed.

Returns:
the bounds of the transformed coordinates.

setLens

void setLens(float x,
             float y)
Sets for focus position

Parameters:
x - X coordinate of the position
y - X coordinate of the position

getLensX

float getLensX()
Returns the lens X center position.

Returns:
float

getLensY

float getLensY()
Returns the lens Y center position.

Returns:
float

setLensX

void setLensX(float x)
Sets the lensX.

Parameters:
x - The lest X to set

setLensY

void setLensY(float y)
Sets the lensY.

Parameters:
y - The lens Y to set

setLensRadius

void setLensRadius(float radius)
Sets the lens radius.

Parameters:
radius - the new radius.

getLensRadius

float getLensRadius()
Returns the lens radius.

Returns:
the lens radius.

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.

Parameters:
l - The PropertyChangeListener to be added

addPropertyChangeListener

void addPropertyChangeListener(String propertyName,
                               PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. The listener will be invoked only when a call on firePropertyChange names that specific property.

Parameters:
propertyName - The name of the property to listen on.
listener - The PropertyChangeListener to be added

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.

Parameters:
l - The PropertyChangeListener to be removed

removePropertyChangeListener

void removePropertyChangeListener(String propertyName,
                                  PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property.

Parameters:
propertyName - The name of the property that was listened on.
listener - The PropertyChangeListener to be removed


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.