|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.application.notation.NotationNameImpl
This class provides definition and manipulation of notation names.
All notation names will be accessed using the
NotationName
wrapper.
Not mutable!
Field Summary | |
private Icon |
icon
|
private static Logger |
LOG
Logger. |
private String |
name
|
private static ArrayList |
notations
|
private String |
version
|
Constructor Summary | |
protected |
NotationNameImpl(String theName)
A notation without a version or icon. |
protected |
NotationNameImpl(String theName,
Icon theIcon)
A notation without a version and with an icon. |
protected |
NotationNameImpl(String theName,
String theVersion)
A notation with a version and no icon. |
protected |
NotationNameImpl(String myName,
String myVersion,
Icon myIcon)
A notation with a version and an icon. |
Method Summary | |
static NotationName |
findNotation(String s)
Finds a NotationName matching the configuration string. |
private static void |
fireEvent(int eventType,
NotationName nn)
|
static ArrayList |
getAvailableNotations()
Get all of the registered notations. |
String |
getConfigurationValue()
Returns the text string stored in the configuration for this notation. |
Icon |
getIcon()
Returns an icon for the notation, or null if no icon is available. |
String |
getName()
Accessor for the language name. |
static NotationName |
getNotation(String k1)
Finds a NotationName matching the language with no version. |
static NotationName |
getNotation(String k1,
String k2)
Finds a NotationName matching the language and version. |
static String |
getNotationNameString(String k1,
String k2)
|
String |
getTitle()
Gets a textual title for the notation suitable for use in a combo box or other such visual location. |
String |
getVersion()
Accessor for the language version. |
static NotationName |
makeNotation(String k1,
String k2,
Icon icon)
Create a NotationName with or without a version. |
void |
moduleDisabled(ArgoModuleEvent event)
Invoked when a module has been disabled. |
void |
moduleEnabled(ArgoModuleEvent event)
Invoked when a module has been enabled. |
void |
moduleLoaded(ArgoModuleEvent event)
Invoked when a module has been loaded. |
void |
moduleUnloaded(ArgoModuleEvent event)
Invoked when a module has been unloaded. |
boolean |
sameNotationAs(NotationName nn)
Ease-of-use helper to determine if this notation is the same as another. |
String |
toString()
Ease-of-use helper for usage in swing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final Logger LOG
private String name
private String version
private Icon icon
private static ArrayList notations
Constructor Detail |
protected NotationNameImpl(String theName)
theName
- the name of the notationprotected NotationNameImpl(String theName, Icon theIcon)
theName
- the name of the notationtheIcon
- the icon for of the notationprotected NotationNameImpl(String theName, String theVersion)
theName
- the name of the notationtheVersion
- the version of the notationprotected NotationNameImpl(String myName, String myVersion, Icon myIcon)
myName
- the name of the notationmyVersion
- the version of the notationmyIcon
- the icon of the notationMethod Detail |
public String getName()
getName
in interface NotationName
NotationName.getName()
public String getVersion()
getVersion
in interface NotationName
null
.NotationName.getVersion()
public String getTitle()
getTitle
in interface NotationName
NotationName.getTitle()
public Icon getIcon()
getIcon
in interface NotationName
Icon
for the language or null
.NotationName.getIcon()
public String getConfigurationValue()
NotationName
NotationName.sameNotationAs(NotationName)
.This should incorporate both the name and the version if one exists.
getConfigurationValue
in interface NotationName
NotationName.getConfigurationValue()
public String toString()
NotationName
getConfigurationValue()
.
toString
in interface NotationName
Object.toString()
public static String getNotationNameString(String k1, String k2)
k1
- first part of the given namek2
- 2nd part of the given name
private static void fireEvent(int eventType, NotationName nn)
public static NotationName makeNotation(String k1, String k2, Icon icon)
k1
- the 1st part of the notation namek2
- the 2nd part of the notation nameicon
- the icon for the notation
public static ArrayList getAvailableNotations()
public static NotationName findNotation(String s)
s
- the configuration string
public boolean sameNotationAs(NotationName nn)
NotationName
getConfigurationValue().equals(nn.getConfigurationValue())
sameNotationAs
in interface NotationName
nn
- to compare
NotationName.sameNotationAs(org.argouml.application.api.NotationName)
public static NotationName getNotation(String k1)
k1
- the notation name string
public static NotationName getNotation(String k1, String k2)
k1
- the 1st part of the notation namek2
- the 2nd part of the notation name
public void moduleLoaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleLoaded
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleLoaded(org.argouml.application.events.ArgoModuleEvent)
public void moduleUnloaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleUnloaded
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleUnloaded(org.argouml.application.events.ArgoModuleEvent)
public void moduleEnabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleEnabled
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleEnabled(org.argouml.application.events.ArgoModuleEvent)
public void moduleDisabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleDisabled
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleDisabled(org.argouml.application.events.ArgoModuleEvent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |