Package com.luciad.lucy.gui.formatbar
Class ALcyFormatBarFactory
java.lang.Object
com.luciad.lucy.gui.formatbar.ALcyFormatBarFactory
- Direct Known Subclasses:
TLcyCompositeFormatBarFactory
Factory to create ALcyFormatBars.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancanCreateFormatBar(ILcdView aView, ILcdLayer aLayer) Returnstrueif aALcyFormatBarcan be created for the given parameters,falseotherwise.abstract ALcyFormatBarcreateFormatBar(ILcdView aView, ILcdLayer aLayer) Creates anALcyFormatBarfor the given parameters.
-
Constructor Details
-
ALcyFormatBarFactory
protected ALcyFormatBarFactory()Default constructor.
-
-
Method Details
-
canCreateFormatBar
Returnstrueif aALcyFormatBarcan be created for the given parameters,falseotherwise.- Parameters:
aView- The view to create the bar for. Cannot benull.aLayer- The layer to create this bar for. Can benull. It is null if a bar needs to be created before any layer of the format is available.- Returns:
trueif aALcyFormatBarcan be created for the given parameters,falseotherwise.
-
createFormatBar
Creates an
ALcyFormatBarfor the given parameters.This method does not need to set the given layer to the created
ALcyFormatBar, that is the responsibility of the user of this method.- Parameters:
aView- The view to create the bar for. Cannot benull.aLayer- The layer to create this bar for. Can benull. It is null if a bar needs to be created before any layer of the format is available.- Returns:
- the newly created
ALcyFormatBar. - Throws:
IllegalArgumentException- IfcanCreateDrawingBarreturnsfalsefor the same parameters.
-