Package cnuphys.magfield
Interface IComponentZoomable
- All Known Implementing Classes:
MagneticFieldCanvas
public interface IComponentZoomable
-
Method Summary
Modifier and TypeMethodDescriptionGet the component being zoomedGet the current world systemvoid
localToWorld
(Point pp, Point2D.Double wp) Convert a screen point to a world pointvoid
Set the world systemvoid
worldToLocal
(Point pp, Point2D.Double wp) Convert a world point to a screen point
-
Method Details
-
getComponent
JComponent getComponent()Get the component being zoomed- Returns:
- the component being zoomed
-
getWorldSystem
Rectangle2D.Double getWorldSystem()Get the current world system- Returns:
- the current world system
-
setWorldSystem
Set the world system- Parameters:
wr
- the world system
-
localToWorld
Convert a screen point to a world point- Parameters:
pp
- the screen pointwp
- the world point
-
worldToLocal
Convert a world point to a screen point- Parameters:
pp
- the screen pointwp
- the world point
-