Class ImagePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ImagePanel extends JPanel
See Also:
  • Constructor Details

    • ImagePanel

      public ImagePanel(Image img)
  • Method Details

    • setOffsetY

      public void setOffsetY(int offsetY)
    • fitToImage

      public void fitToImage()
    • setImage

      public void setImage(Image img)
    • setRenderOriginal

      public void setRenderOriginal(boolean flag)
    • setKeepRatio

      public void setKeepRatio(boolean flag)
    • setFitToWidth

      public void setFitToWidth(boolean fitToWidth)
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent