Module is.codion.swing.common.ui
Class ImagePane.CenterImage
java.lang.Object
is.codion.swing.common.ui.component.image.ImagePane.CenterImage
- Enclosing class:
ImagePane
Centers the image
-
Method Summary
Modifier and TypeMethodDescriptionvoidonImage(Point2D.Double coordinate) Centers the image on the given image coordinatevoidCenters the image on the given coordinate on the pane, if it is within the image boundaries.
-
Method Details
-
onImage
Centers the image on the given image coordinate- Parameters:
coordinate- the image coordinate on which to center the image
-
onPane
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
-