public class TLspDomainObjectContext extends TLcdDomainObjectContext
TLcdDomainObjectContext
which includes a certain paint representation
state as well.Constructor and Description |
---|
TLspDomainObjectContext(Object aObject,
ILspView aView,
ILspInteractivePaintableLayer aLayer,
TLspPaintRepresentationState aPRS)
Creates a new TLspDomainObjectContext based on the provided object, view, layer and
paint representation state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ILspInteractivePaintableLayer |
getLayer()
Returns the
ILcdLayer in which the domain object is displayed. |
Object |
getObject()
Equivalent of
TLcdDomainObjectContext.getDomainObject() |
TLspPaintRepresentationState |
getPaintRepresentationState()
Returns the paint representation state associated with the domain object
|
ILspView |
getView()
Returns the
ILcdView in which the domain object is displayed. |
int |
hashCode() |
getDomainObject, getModel, toString
public TLspDomainObjectContext(Object aObject, ILspView aView, ILspInteractivePaintableLayer aLayer, TLspPaintRepresentationState aPRS)
aObject
- the domain object represented by this domain object context. Must not be null
aView
- the view.aLayer
- the layer.aPRS
- the paint representation state.public ILspView getView()
ILcdView
in which the domain object is displayed.getView
in class TLcdDomainObjectContext
ILcdView
in which the domain object is displayed.
This may be null
.public ILspInteractivePaintableLayer getLayer()
ILcdLayer
in which the domain object is displayed.getLayer
in class TLcdDomainObjectContext
ILcdLayer
in which the domain object is displayed.
This may be null
.public TLspPaintRepresentationState getPaintRepresentationState()
public boolean equals(Object o)
equals
in class TLcdDomainObjectContext
public int hashCode()
hashCode
in class TLcdDomainObjectContext
public Object getObject()
Equivalent of TLcdDomainObjectContext.getDomainObject()