|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.interaction.MagnifyingGlassControl
public class MagnifyingGlassControl
Implementation of a default Control
for a MagnifyingGlass.
Constructor Summary | |
---|---|
MagnifyingGlassControl(de.javagl.swogl.SwoglContainer swoglContainer,
de.javagl.swogl.SwoglComponent swoglComponent,
de.javagl.swogl.geometry.SimpleGeometry geometry)
Creates a new Magnifier that magnifies the contents of the given SwoglComponent, which resides in the given SwoglContainer and contains the given Geometry. |
Method Summary | |
---|---|
void |
attachTo(javax.swing.JComponent component)
Attach this control to the given component. |
void |
detachFrom(javax.swing.JComponent component)
Detach this control from the given component. |
boolean |
isEnabled()
Returns whether this control is enabled |
void |
setEnabled(boolean enabled)
Enable or disable this control |
void |
setFocusingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> focusingCondition)
Set the condition which states whether mouse events should change the focus location of the magnifying glass |
void |
setMagnificationCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> magnificationCondition)
Set the condition which states whether mouse events should change the magnification of the magnifying glass |
void |
setRadiusCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> radiusCondition)
Set the condition which states whether mouse events should change the radius of the magnifying glass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MagnifyingGlassControl(de.javagl.swogl.SwoglContainer swoglContainer, de.javagl.swogl.SwoglComponent swoglComponent, de.javagl.swogl.geometry.SimpleGeometry geometry)
swoglContainer
- The SwoglContainer that contains the
SwoglComponentswoglComponent
- The swoglComponent that is to be magnifiedgeometry
- The geometry that the SwoglComponent consists ofMethod Detail |
---|
public void attachTo(javax.swing.JComponent component)
Control
Control.detachFrom(JComponent)
method has to be called.
attachTo
in interface Control
component
- The component to attach topublic void detachFrom(javax.swing.JComponent component)
Control
Control.attachTo(JComponent)
was called.
detachFrom
in interface Control
component
- The component to detach frompublic void setEnabled(boolean enabled)
Control
setEnabled
in interface Control
enabled
- Whether this control is enabledpublic boolean isEnabled()
Control
isEnabled
in interface Control
public void setFocusingCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> focusingCondition)
focusingCondition
- The focusing condition to setpublic void setRadiusCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> radiusCondition)
radiusCondition
- The radius condition to setpublic void setMagnificationCondition(de.javagl.swogl.Condition<java.awt.event.MouseEvent> magnificationCondition)
magnificationCondition
- The magnification condition to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |