public class ImportedTextureWizardController extends WizardController implements Controller
Modifier and Type | Class and Description |
---|---|
protected class |
ImportedTextureWizardController.ImportedTextureWizardStepState
Step state superclass.
|
static class |
ImportedTextureWizardController.Property |
static class |
ImportedTextureWizardController.Step |
WizardController.WizardControllerStepState
Constructor and Description |
---|
ImportedTextureWizardController(CatalogTexture texture,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates a controller that edits
texture values. |
ImportedTextureWizardController(java.lang.String textureName,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates a controller that edits a new catalog texture with a given
textureName . |
ImportedTextureWizardController(UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates a controller that edits a new catalog texture.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(ImportedTextureWizardController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
finish()
Changes background image in model and posts an undoable operation.
|
TexturesCategory |
getCategory()
Returns the category of the imported texture.
|
ContentManager |
getContentManager()
Returns the content manager of this controller.
|
java.lang.String |
getCreator()
Returns the creator of the imported piece.
|
float |
getHeight()
Returns the height.
|
Content |
getImage()
Returns the image content of the imported texture.
|
java.lang.String |
getName()
Returns the name of the imported texture.
|
ImportedTextureWizardController.Step |
getStep()
Returns the current step in wizard view.
|
protected ImportedTextureWizardController.ImportedTextureWizardStepState |
getStepState()
Returns the current step state.
|
protected View |
getStepsView()
Returns the unique wizard view used for all steps.
|
protected ImportedTextureWizardController.ImportedTextureWizardStepState |
getTextureAttributesStepState()
Returns the texture attributes step state.
|
protected ImportedTextureWizardController.ImportedTextureWizardStepState |
getTextureImageStepState()
Returns the texture image step state.
|
float |
getWidth()
Returns the width.
|
boolean |
isTextureNameValid()
Returns
true if texture name is valid. |
void |
removePropertyChangeListener(ImportedTextureWizardController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setCategory(TexturesCategory category)
Sets the category of the imported texture.
|
void |
setCreator(java.lang.String creator)
Sets the creator of the imported piece.
|
void |
setHeight(float height)
Sets the size of the imported texture.
|
void |
setImage(Content image)
Sets the image content of the imported texture.
|
void |
setName(java.lang.String name)
Sets the name of the imported texture.
|
protected void |
setStep(ImportedTextureWizardController.Step step)
Switch in the wizard view to the given
step . |
void |
setWidth(float width)
Sets the width of the imported texture.
|
addPropertyChangeListener, displayView, getStepIcon, getStepView, getTitle, getView, goBackToPreviousStep, goToNextStep, isBackStepEnabled, isLastStep, isNextStepEnabled, isResizable, removePropertyChangeListener, setResizable, setStepState, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
public ImportedTextureWizardController(UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public ImportedTextureWizardController(java.lang.String textureName, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
textureName
.public ImportedTextureWizardController(CatalogTexture texture, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
texture
values.public void finish()
finish
in class WizardController
public ContentManager getContentManager()
protected ImportedTextureWizardController.ImportedTextureWizardStepState getStepState()
getStepState
in class WizardController
protected ImportedTextureWizardController.ImportedTextureWizardStepState getTextureImageStepState()
protected ImportedTextureWizardController.ImportedTextureWizardStepState getTextureAttributesStepState()
protected View getStepsView()
protected void setStep(ImportedTextureWizardController.Step step)
step
.public ImportedTextureWizardController.Step getStep()
public void addPropertyChangeListener(ImportedTextureWizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(ImportedTextureWizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public void setImage(Content image)
public Content getImage()
public java.lang.String getName()
public void setName(java.lang.String name)
public TexturesCategory getCategory()
public void setCategory(TexturesCategory category)
public java.lang.String getCreator()
public void setCreator(java.lang.String creator)
public float getWidth()
public void setWidth(float width)
public float getHeight()
public void setHeight(float height)
public boolean isTextureNameValid()
true
if texture name is valid.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License