Package com.luciad.lucy.util.context
Class TLcyModelEncoderContext
java.lang.Object
com.luciad.lucy.util.context.TLcyModelEncoderContext
This context object defines everything related to an
ILcdModelEncoder
, more
specifically it defines the ILcdModel
it is about to encode.-
Constructor Summary
ConstructorDescriptionTLcyModelEncoderContext
(ILcdModelEncoder aModelEncoder) Creates a newTLcyModelEncoderContext
object for the givenaModelEncoder
.TLcyModelEncoderContext
(ILcdModelEncoder aModelEncoder, ILcdModel aModelToEncode) Creates a newTLcyModelEncoderContext
object for the givenaModelEncoder
.TLcyModelEncoderContext
(ILcdModelEncoder aModelEncoder, ILcdModel aModelToEncode, ILcdLayer aLayer, ILcdView aView) Creates a newTLcyModelEncoderContext
object for the givenaModelEncoder
. -
Method Summary
Modifier and TypeMethodDescriptiongetLayer()
Returns the layer of the model that will be encoded.Returns the model encoder for which the properties need to be customized.Returns the model that the associatedmodel encoder
will have to encode.getView()
Returns the view in which the model that will be encoded is displayed.toString()
-
Constructor Details
-
TLcyModelEncoderContext
Creates a newTLcyModelEncoderContext
object for the givenaModelEncoder
. The model to encode isnull
.- Parameters:
aModelEncoder
- TheILcdModelEncoder
for which this object is the context. This must not benull
.
-
TLcyModelEncoderContext
Creates a newTLcyModelEncoderContext
object for the givenaModelEncoder
.- Parameters:
aModelEncoder
- TheILcdModelEncoder
for which this object is the context. This must not benull
.aModelToEncode
- The model that the encoder will have to encode. This is optional and can benull
.
-
TLcyModelEncoderContext
public TLcyModelEncoderContext(ILcdModelEncoder aModelEncoder, ILcdModel aModelToEncode, ILcdLayer aLayer, ILcdView aView) Creates a newTLcyModelEncoderContext
object for the givenaModelEncoder
.- Parameters:
aModelEncoder
- TheILcdModelEncoder
for which this object is the context. This must not benull
.aModelToEncode
- The model that the encoder will have to encode. This is optional and can benull
.aLayer
- The layer ofaModelToEncode
. This is optional and can benull
aView
- The view in which the model that will be encoded is displayed. This is optional and can benull
.
-
-
Method Details
-
getView
Returns the view in which the model that will be encoded is displayed.- Returns:
- The view in which the model that will be encoded is displayed. This is an optional
property and can be
null
.
-
getLayer
Returns the layer of the model that will be encoded. That layer is contained in the view of this context.- Returns:
- the layer of the model that will be encoded. This is an optional property and can be
null
.
-
getModelEncoder
Returns the model encoder for which the properties need to be customized.- Returns:
- The model encoder that needs to be customized. This will never be
null
.
-
getModelToEncode
Returns the model that the associatedmodel encoder
will have to encode.- Returns:
- The model that will need to be encoded. This is an optional property and can be
null
.
-
toString
-