Class TLcyDrawingStyleRepositoryChangedEvent
java.lang.Object
java.util.EventObject
com.luciad.lucy.addons.drawing.model.TLcyDrawingStyleRepositoryChangedEvent
- All Implemented Interfaces:
Serializable
Event fired when a
TLcyDrawingStyleRepository
is changed. A change is in this case
defined as:
- Adding of a style to the repository
- Removing a style from the repository
- Changing a style of the repository
- Since:
- 8.2
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates that astyle
was added.static final int
Indicates that astyle
has changed.static final int
Indicates that astyle
was removed.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcyDrawingStyleRepositoryChangedEvent
(int aID, Object aStyle, TLcyDrawingStyleRepository aDrawingStyleRepository) Creates a newTLcyDrawingStyleRepositoryChangedEvent
. -
Method Summary
Modifier and TypeMethodDescriptionReturns theTLcyDrawingStyleRepository
that is the source of this change event.int
getID()
Gets the id of the event.getStyle()
Returns thestyle
that has been changed.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
STYLE_ADDED
public static final int STYLE_ADDEDIndicates that astyle
was added.- See Also:
-
STYLE_REMOVED
public static final int STYLE_REMOVEDIndicates that astyle
was removed.- See Also:
-
STYLE_CHANGED
public static final int STYLE_CHANGEDIndicates that astyle
has changed.- See Also:
-
-
Constructor Details
-
TLcyDrawingStyleRepositoryChangedEvent
public TLcyDrawingStyleRepositoryChangedEvent(int aID, Object aStyle, TLcyDrawingStyleRepository aDrawingStyleRepository) Creates a newTLcyDrawingStyleRepositoryChangedEvent
.- Parameters:
aID
- The id of the event. Must beSTYLE_ADDED
orSTYLE_REMOVED
.aStyle
- TheObject
involved in the event.aDrawingStyleRepository
- TheTLcyDrawingStyleRepository
involved in the event.
-
-
Method Details
-
getDrawingStyleRepository
Returns theTLcyDrawingStyleRepository
that is the source of this change event.- Returns:
- the
TLcyDrawingStyleRepository
that is the source of this change event.
-
getStyle
Returns thestyle
that has been changed.- Returns:
- the
style
that has been changed.
-
getID
public int getID()Gets the id of the event.- Returns:
- the id of the event. Must be one of the following:
STYLE_ADDED
orSTYLE_REMOVED
orSTYLE_CHANGED
.
-