Package cnuphys.magfield
Interface IComponentZoomable
- All Known Implementing Classes:
- MagneticFieldCanvas
public interface IComponentZoomable
- 
Method SummaryModifier and TypeMethodDescriptionGet the component being zoomedGet the current world systemvoidlocalToWorld(Point pp, Point2D.Double wp) Convert a screen point to a world pointvoidSet the world systemvoidworldToLocal(Point pp, Point2D.Double wp) Convert a world point to a screen point
- 
Method Details- 
getComponentJComponent getComponent()Get the component being zoomed- Returns:
- the component being zoomed
 
- 
getWorldSystemRectangle2D.Double getWorldSystem()Get the current world system- Returns:
- the current world system
 
- 
setWorldSystemSet the world system- Parameters:
- wr- the world system
 
- 
localToWorldConvert a screen point to a world point- Parameters:
- pp- the screen point
- wp- the world point
 
- 
worldToLocalConvert a world point to a screen point- Parameters:
- pp- the screen point
- wp- the world point
 
 
-