org.argouml.notation
Class NotationSettings
java.lang.Object
org.argouml.notation.NotationSettings
- Direct Known Subclasses:
- SDNotationSettings
public class NotationSettings
- extends java.lang.Object
Notation settings value object. Stores settings which control how text is
rendered on diagrams.
TODO: This needs to go on a diet. It's used everywhere, so is performance
sensitive. The current set of settings is the union of all those found in the
legacy code, but it's not clear that all of them are actually used.
|
Constructor Summary |
NotationSettings()
Create a notation settings value object with all default values. |
NotationSettings(NotationSettings parentSettings)
Create a notation settings object which uses the given settings as its
default values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotationSettings
public NotationSettings()
- Create a notation settings value object with all default values.
TODO: This class only has partial Undo support (basically just those
members that had it as part of a previous implementation).
NotationSettings
public NotationSettings(NotationSettings parentSettings)
- Create a notation settings object which uses the given settings as its
default values. Note that there can be multiple levels of settings in
the hierarchy.
getDefaultSettings
public static NotationSettings getDefaultSettings()
- Returns:
- the default settings
getNotationLanguage
public java.lang.String getNotationLanguage()
- Returns:
- Return the notation language.
setNotationLanguage
public boolean setNotationLanguage(java.lang.String newLanguage)
- Parameters:
newLanguage - the notation language.
- Returns:
- true if the notation is set - false if it does not exist
isFullyHandleStereotypes
public boolean isFullyHandleStereotypes()
- Returns:
- Returns the fullyHandleStereotypes setting. If true, it will
cause notation providers to include the names of the stereotypes
for an element in the editable string presented to the user.
setFullyHandleStereotypes
public void setFullyHandleStereotypes(boolean newValue)
- Parameters:
newValue - The fullyHandleStereotypes to set. If true, it will cause
notation providers to include the names of the stereotypes for
an element in the editable string presented to the user.
isShowSingularMultiplicities
public boolean isShowSingularMultiplicities()
- Returns:
- Returns the showSingularMultiplicities.
setShowSingularMultiplicities
public void setShowSingularMultiplicities(boolean showem)
- Parameters:
showem - true if "1" Multiplicities are to be shown.
isUseGuillemets
public boolean isUseGuillemets()
- Returns:
- Returns the useGuillemets.
setUseGuillemets
public void setUseGuillemets(boolean showem)
- Parameters:
showem - true if guillemets are to be shown.
isShowTypes
public boolean isShowTypes()
- Returns:
- Returns the showTypes.
setShowTypes
public void setShowTypes(boolean showem)
- Parameters:
showem - true if types are to be shown.
isShowProperties
public boolean isShowProperties()
- Returns:
- Returns the showProperties.
setShowProperties
public void setShowProperties(boolean showem)
- Parameters:
showem - true if properties are to be shown.
isShowInitialValues
public boolean isShowInitialValues()
- Returns:
- Returns the showInitialValues.
setShowInitialValues
public void setShowInitialValues(boolean showem)
- Parameters:
showem - true if initial values are to be shown.
isShowMultiplicities
public boolean isShowMultiplicities()
- Returns:
- Returns the showMultiplicities.
setShowMultiplicities
public void setShowMultiplicities(boolean showem)
- Parameters:
showem - true if the multiplicity is to be shown.
isShowAssociationNames
public boolean isShowAssociationNames()
- Returns:
- Returns the showAssociationNames.
setShowAssociationNames
public void setShowAssociationNames(boolean showem)
- Parameters:
showem - true if association names are to be shown.
isShowVisibilities
public boolean isShowVisibilities()
- Returns:
- Returns the showVisibilities.
setShowVisibilities
public void setShowVisibilities(boolean showem)
- Parameters:
showem - true if visibilities are to be shown.
isShowPaths
public boolean isShowPaths()
- Returns:
- Returns the showPaths.
setShowPaths
public void setShowPaths(boolean showPaths)
- Parameters:
showPaths - The showPaths to set.