Class TextureFactoryDialog

java.lang.Object
com.marginallyclever.ro3.texture.TextureFactoryDialog

public class TextureFactoryDialog extends Object

TextureFactoryDialog displays controls to load a Texture from a file, wrapped in a TextureWithMetadata.

TextureWithMetadata are created using the TextureFactory, which makes sure identical items are not loaded twice.

  • Constructor Details

    • TextureFactoryDialog

      public TextureFactoryDialog()
  • Method Details

    • run

      public int run(JComponent parent)
      Returns:
      JFileChooser.APPROVE_OPTION or JFileChooser.CANCEL_OPTION
    • getTexture

      public TextureWithMetadata getTexture()
      Returns:
      the last texture loaded by this panel.