Interface IComponentZoomable

All Known Implementing Classes:
MagneticFieldCanvas

public interface IComponentZoomable
  • 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

      void setWorldSystem(Rectangle2D.Double wr)
      Set the world system
      Parameters:
      wr - the world system
    • localToWorld

      void localToWorld(Point pp, Point2D.Double wp)
      Convert a screen point to a world point
      Parameters:
      pp - the screen point
      wp - the world point
    • worldToLocal

      void worldToLocal(Point pp, Point2D.Double wp)
      Convert a world point to a screen point
      Parameters:
      pp - the screen point
      wp - the world point