|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MagicLens
A MagicLens is a see through lens that performs a transformation on its contents.
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 |
---|
static final String PROPERTY_LENS_POSITION_X
static final String PROPERTY_LENS_POSITION_Y
static final String PROPERTY_LENS_RADIUS
static final String PROPERTY_ENABLED
Method Detail |
---|
boolean isEnabled()
void setEnabled(boolean set)
set
- the enabled state to setRectangle2D getBounds()
void setLens(float x, float y)
x
- X coordinate of the positiony
- X coordinate of the positionfloat getLensX()
float getLensY()
void setLensX(float x)
x
- The lest X to setvoid setLensY(float y)
y
- The lens Y to setvoid setLensRadius(float radius)
radius
- the new radius.float getLensRadius()
void addPropertyChangeListener(PropertyChangeListener l)
l
- The PropertyChangeListener to be addedvoid addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedvoid removePropertyChangeListener(PropertyChangeListener l)
l
- The PropertyChangeListener to be removedvoid removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |