Package com.luciad.lucy.gui.formatbar
Class ALcyFormatBarFactory
java.lang.Object
com.luciad.lucy.gui.formatbar.ALcyFormatBarFactory
- Direct Known Subclasses:
TLcyCompositeFormatBarFactory
Factory to create ALcyFormatBar
s.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
canCreateFormatBar
(ILcdView aView, ILcdLayer aLayer) Returnstrue
if aALcyFormatBar
can be created for the given parameters,false
otherwise.abstract ALcyFormatBar
createFormatBar
(ILcdView aView, ILcdLayer aLayer) Creates anALcyFormatBar
for the given parameters.
-
Constructor Details
-
ALcyFormatBarFactory
protected ALcyFormatBarFactory()Default constructor.
-
-
Method Details
-
canCreateFormatBar
Returnstrue
if aALcyFormatBar
can be created for the given parameters,false
otherwise.- 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:
true
if aALcyFormatBar
can be created for the given parameters,false
otherwise.
-
createFormatBar
Creates an
ALcyFormatBar
for 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
- IfcanCreateDrawingBar
returnsfalse
for the same parameters.
-