public class TLcyDrawingStyleRepositoryChangedEvent extends EventObject
Event fired when a
TLcyDrawingStyleRepository
is changed. A change is in this case
defined as:
TLcyDrawingStyleRepository
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
STYLE_ADDED
Indicates that a
style was added. |
static int |
STYLE_CHANGED
Indicates that a
style has changed. |
static int |
STYLE_REMOVED
Indicates that a
style was removed. |
source
Constructor and Description |
---|
TLcyDrawingStyleRepositoryChangedEvent(int aID,
Object aStyle,
TLcyDrawingStyleRepository aDrawingStyleRepository)
Creates a new
TLcyDrawingStyleRepositoryChangedEvent . |
Modifier and Type | Method and Description |
---|---|
TLcyDrawingStyleRepository |
getDrawingStyleRepository()
Returns the
TLcyDrawingStyleRepository that is the source of this change event. |
int |
getID()
Gets the id of the event.
|
Object |
getStyle()
Returns the
style that has been changed. |
getSource, toString
public static final int STYLE_ADDED
style
was added.public static final int STYLE_REMOVED
style
was removed.public static final int STYLE_CHANGED
style
has changed.public TLcyDrawingStyleRepositoryChangedEvent(int aID, Object aStyle, TLcyDrawingStyleRepository aDrawingStyleRepository)
TLcyDrawingStyleRepositoryChangedEvent
.aID
- The id of the event. Must be STYLE_ADDED
or STYLE_REMOVED
.aStyle
- The Object
involved in the event.aDrawingStyleRepository
- The TLcyDrawingStyleRepository
involved in the event.public TLcyDrawingStyleRepository getDrawingStyleRepository()
TLcyDrawingStyleRepository
that is the source of this change event.TLcyDrawingStyleRepository
that is the source of this change event.public Object getStyle()
style
that has been changed.style
that has been changed.public int getID()
STYLE_ADDED
or STYLE_REMOVED
or STYLE_CHANGED
.