Package com.luciad.lucy.util.context
Class TLcyModelContext
java.lang.Object
com.luciad.lucy.util.context.TLcyModelContext
This context object defines everything related to an
ILcdModel
, more specifically
the ILcdLayer
and the ILcdView
in which it is displayed.
This class if for example used by the Table View action.
This action creates instances of this class, and creates a customizer panel for it using the
factories available as service
.-
Constructor Summary
ConstructorDescriptionTLcyModelContext
(ILcdModel aModel) Creates a new context object for the givenILcdModel
, withnull
for theILcdLayer
and theILcdView
.TLcyModelContext
(ILcdModel aModel, ILcdLayer aLayer, ILcdView aView) Creates a new context object for theILcdModel
of the specifiedILcdLayer
. -
Method Summary
-
Constructor Details
-
TLcyModelContext
Creates a new context object for the givenILcdModel
, withnull
for theILcdLayer
and theILcdView
.- Parameters:
aModel
- TheILcdModel
for which this object provides the context. This must not benull
.
-
TLcyModelContext
Creates a new context object for theILcdModel
of the specifiedILcdLayer
.- Parameters:
aModel
- TheILcdModel
for which this object provides the context. This must not benull
.aLayer
- TheILcdLayer
in which the model is displayed. This may benull
if this information is not available.aView
- TheILcdView
in which the model is displayed. This may benull
if this information is not available.
-
-
Method Details
-
getModel
Returns theILcdModel
for which this object provides the context.- Returns:
- The
ILcdModel
for which this object provides the context. This will never benull
.
-
getLayer
Returns the layer in which theILcdModel
is displayed.- Returns:
- The layer in which the
ILcdModel
is displayed. This may benull
.
-
getView
Returns theILcdView
in which theILcdModel
is displayed.- Returns:
- The
ILcdView
in which theILcdModel
is displayed. This may benull
.
-
toString
-
equals
This method will return
true
when bothTLcyModelContext
instances have an equal model, layer and view. -
hashCode
public int hashCode()
-