Class ImagePane.CenterImage

java.lang.Object
is.codion.swing.common.ui.component.image.ImagePane.CenterImage
Enclosing class:
ImagePane

public final class ImagePane.CenterImage extends Object
Centers the image
  • Method Details

    • onImage

      public void onImage(Point2D.Double coordinate)
      Centers the image on the given image coordinate
      Parameters:
      coordinate - the image coordinate on which to center the image
    • onPane

      public void onPane(Point coordinate)
      Centers the image on the given coordinate on the pane, if it is within the image boundaries.
      Parameters:
      coordinate - the pane coordinate on which to center the image