Package com.marginallyclever.ro3.texture
Class TextureFactoryDialog
java.lang.Object
com.marginallyclever.ro3.texture.TextureFactoryDialog
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 Summary
-
Method Summary
-
Constructor Details
-
TextureFactoryDialog
public TextureFactoryDialog()
-
-
Method Details
-
run
- Returns:
- JFileChooser.APPROVE_OPTION or JFileChooser.CANCEL_OPTION
-
getTexture
- Returns:
- the last texture loaded by this panel.
-