Class ALcyDefaultModelDescriptorFactory
Factory to create ILcdModelDescriptors. This factory is typically registered as a service to
ILcyLucyEnv.
Contrary to a lot of other factories that can be registered to (a manager of)
ILcyLucyEnv, this factory does not have a canCreate facility (or
something similar by throwing IllegalArgumentException from the create
method). So if several ALcyModelDescriptorFactorys are registered to
ILcyLucyEnv, there is no programmatic way to choose one. Instead, only the end user
can choose which one to use, which explains the need for a displayName property.
For an example of how that can work, please refer to
TLcyCreateGXYLayerAction.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newALcyDefaultModelDescriptorFactory. -
Method Summary
Modifier and TypeMethodDescriptionabstract ILcdModelDescriptorCreates anILcdModelDescriptorthat is ready to be used.Returns the display name (that can be presented to an end-user) for this factory.
-
Constructor Details
-
ALcyDefaultModelDescriptorFactory
protected ALcyDefaultModelDescriptorFactory()Creates a newALcyDefaultModelDescriptorFactory.
-
-
Method Details
-
getDisplayName
Returns the display name (that can be presented to an end-user) for this factory.
The default implementation returns the display name of a model descriptor created by
createDefaultModelDescriptor().- Returns:
- the display name (that can be presented to an end-user) for this factory.
-
createDefaultModelDescriptor
Creates anILcdModelDescriptorthat is ready to be used. An example use could be to pass the created descriptor to anILcdModelFactory.- Returns:
- an
ILcdModelDescriptorthat is ready to be used.
-