public class BackgroundImageWizardController extends WizardController implements Controller
Modifier and Type | Class and Description |
---|---|
protected class |
BackgroundImageWizardController.BackgroundImageWizardStepState
Step state superclass.
|
static class |
BackgroundImageWizardController.Property |
static class |
BackgroundImageWizardController.Step |
WizardController.WizardControllerStepState
Constructor and Description |
---|
BackgroundImageWizardController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager,
javax.swing.undo.UndoableEditSupport undoSupport) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(BackgroundImageWizardController.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.
|
ContentManager |
getContentManager()
Returns the content manager of this controller.
|
Content |
getImage()
Returns the image content of the background image.
|
protected BackgroundImageWizardController.BackgroundImageWizardStepState |
getImageChoiceStepState()
Returns the image choice step state.
|
protected BackgroundImageWizardController.BackgroundImageWizardStepState |
getImageOriginStepState()
Returns the image origin step state.
|
protected BackgroundImageWizardController.BackgroundImageWizardStepState |
getImageScaleStepState()
Returns the image scale step state.
|
BackgroundImage |
getReferenceBackgroundImage()
Returns the background image of another level that can be used to initialize
the scale values of the edited image.
|
java.lang.Float |
getScaleDistance()
Returns the scale distance of the background image.
|
float[][] |
getScaleDistancePoints()
Returns the coordinates of the scale distance points of the background image.
|
BackgroundImageWizardController.Step |
getStep()
Returns the current step in wizard view.
|
protected BackgroundImageWizardController.BackgroundImageWizardStepState |
getStepState()
Returns the current step state.
|
protected View |
getStepsView()
Returns the unique wizard view used for all steps.
|
float |
getXOrigin()
Returns the abscissa of the origin of the background image.
|
float |
getYOrigin()
Returns the ordinate of the origin of the background image.
|
void |
removePropertyChangeListener(BackgroundImageWizardController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setImage(Content image)
Sets the image content of the background image.
|
void |
setOrigin(float xOrigin,
float yOrigin)
Sets the origin of the background image.
|
void |
setScaleDistance(java.lang.Float scaleDistance)
Sets the scale distance of the background image.
|
void |
setScaleDistancePoints(float scaleDistanceXStart,
float scaleDistanceYStart,
float scaleDistanceXEnd,
float scaleDistanceYEnd)
Sets the coordinates of the scale distance points of the background image.
|
protected void |
setStep(BackgroundImageWizardController.Step step)
Switch in the wizard view to the given
step . |
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 BackgroundImageWizardController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, javax.swing.undo.UndoableEditSupport undoSupport)
public void finish()
finish
in class WizardController
public ContentManager getContentManager()
protected BackgroundImageWizardController.BackgroundImageWizardStepState getStepState()
getStepState
in class WizardController
protected BackgroundImageWizardController.BackgroundImageWizardStepState getImageChoiceStepState()
protected BackgroundImageWizardController.BackgroundImageWizardStepState getImageOriginStepState()
protected BackgroundImageWizardController.BackgroundImageWizardStepState getImageScaleStepState()
protected View getStepsView()
protected void setStep(BackgroundImageWizardController.Step step)
step
.public BackgroundImageWizardController.Step getStep()
public void addPropertyChangeListener(BackgroundImageWizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(BackgroundImageWizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public BackgroundImage getReferenceBackgroundImage()
public void setImage(Content image)
public Content getImage()
public void setScaleDistance(java.lang.Float scaleDistance)
public java.lang.Float getScaleDistance()
public void setScaleDistancePoints(float scaleDistanceXStart, float scaleDistanceYStart, float scaleDistanceXEnd, float scaleDistanceYEnd)
public float[][] getScaleDistancePoints()
public void setOrigin(float xOrigin, float yOrigin)
public float getXOrigin()
public float getYOrigin()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License