Class DisplayWizardModel
- java.lang.Object
-
- org.pietschy.wizard.AbstractWizardModel
-
- org.pietschy.wizard.models.DynamicModel
-
- repast.simphony.visualization.gui.DisplayWizardModel
-
- All Implemented Interfaces:
EventListener
,org.pietschy.wizard.WizardListener
,org.pietschy.wizard.WizardModel
public class DisplayWizardModel extends org.pietschy.wizard.models.DynamicModel implements org.pietschy.wizard.WizardListener
Wizard model for configuring displays.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description DisplayWizardModel(Object contextID, DisplayDescriptor descriptor, ContextData rootContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsOnlyProjectionType(String type)
boolean
containsProjectionType(String type)
boolean
containsValueLayer()
boolean
contextContainsOnlyProjectionType(String type)
boolean
contextContainsProjectionType(String type)
ContextData
getContext()
String
getDefaultStyle()
DisplayDescriptor
getDescriptor()
ProjectionDescriptor
getTypeDescriptor(String type)
void
setDescriptor(DisplayDescriptor descriptor)
void
wizardCancelled(org.pietschy.wizard.WizardEvent wizardEvent)
void
wizardClosed(org.pietschy.wizard.WizardEvent wizardEvent)
-
Methods inherited from class org.pietschy.wizard.models.DynamicModel
add, add, allStepsComplete, isLastStep, lastStep, nextStep, previousStep, refreshModelState, reset, stepIterator
-
Methods inherited from class org.pietschy.wizard.AbstractWizardModel
addCompleteListener, addPropertyChangeListener, addPropertyChangeListener, getActiveStep, isLastAvailable, isLastVisible, isNextAvailable, isPreviousAvailable, removePropertyChangeListener, removePropertyChangeListener, setActiveStep, setCancelAvailable, setLastAvailable, setLastVisible, setNextAvailable, setPreviousAvailable
-
-
-
-
Constructor Detail
-
DisplayWizardModel
public DisplayWizardModel(Object contextID, DisplayDescriptor descriptor, ContextData rootContext)
-
-
Method Detail
-
wizardCancelled
public void wizardCancelled(org.pietschy.wizard.WizardEvent wizardEvent)
- Specified by:
wizardCancelled
in interfaceorg.pietschy.wizard.WizardListener
-
wizardClosed
public void wizardClosed(org.pietschy.wizard.WizardEvent wizardEvent)
- Specified by:
wizardClosed
in interfaceorg.pietschy.wizard.WizardListener
-
getDescriptor
public DisplayDescriptor getDescriptor()
-
getTypeDescriptor
public ProjectionDescriptor getTypeDescriptor(String type)
-
getDefaultStyle
public String getDefaultStyle()
-
contextContainsOnlyProjectionType
public boolean contextContainsOnlyProjectionType(String type)
- Parameters:
type
- the type of projection (e.g. Network)- Returns:
- true if this contains only projections of the specified type otherwise false
-
contextContainsProjectionType
public boolean contextContainsProjectionType(String type)
- Parameters:
type
-- Returns:
- true if the current list of projections contains the specified type.
-
containsOnlyProjectionType
public boolean containsOnlyProjectionType(String type)
- Parameters:
type
- the type of projection (e.g. SNetwork)- Returns:
- true if this contains only projections of the specified type otherwise false
-
containsProjectionType
public boolean containsProjectionType(String type)
- Parameters:
type
-- Returns:
- true if the current list of projections contains the specified type.
-
containsValueLayer
public boolean containsValueLayer()
-
getContext
public ContextData getContext()
-
setDescriptor
public void setDescriptor(DisplayDescriptor descriptor)
-
-