public class TextureChoiceController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
TextureChoiceController.Property |
Constructor and Description |
---|
TextureChoiceController(java.lang.String title,
boolean rotationSupported,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager) |
TextureChoiceController(java.lang.String title,
java.lang.String fitAreaText,
boolean rotationSupported,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager) |
TextureChoiceController(java.lang.String title,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(TextureChoiceController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
addRecentTexture(TextureImage texture)
Adds the given
texture to the recent textures set. |
void |
deleteTexture(CatalogTexture texture)
Controls the deletion of a texture.
|
java.lang.String |
getDialogTitle()
Returns the text that should be displayed as texture choice dialog title.
|
java.lang.String |
getFitAreaText()
Returns the text that should be displayed if fit area option is supported.
|
HomeTexture |
getTexture()
Returns the texture displayed by view.
|
TextureChoiceView |
getView()
Returns the view associated with this controller.
|
void |
importTexture()
Controls texture import.
|
void |
importTexture(java.lang.String textureName)
Controls the import of a texture with a given name.
|
boolean |
isRotationSupported()
Returns
true if the rotation of the edited texture is supported. |
void |
modifyTexture(CatalogTexture texture)
Controls the modification of a texture.
|
void |
removePropertyChangeListener(TextureChoiceController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setTexture(HomeTexture texture)
Sets the texture displayed by view and fires a
PropertyChangeEvent . |
public TextureChoiceController(java.lang.String title, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public TextureChoiceController(java.lang.String title, boolean rotationSupported, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public TextureChoiceController(java.lang.String title, java.lang.String fitAreaText, boolean rotationSupported, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public TextureChoiceView getView()
getView
in interface Controller
public void addPropertyChangeListener(TextureChoiceController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(TextureChoiceController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public void setTexture(HomeTexture texture)
PropertyChangeEvent
.public HomeTexture getTexture()
public java.lang.String getDialogTitle()
public java.lang.String getFitAreaText()
public boolean isRotationSupported()
true
if the rotation of the edited texture is supported.public void importTexture()
public void importTexture(java.lang.String textureName)
public void modifyTexture(CatalogTexture texture)
public void deleteTexture(CatalogTexture texture)
public void addRecentTexture(TextureImage texture)
texture
to the recent textures set.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License