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
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that astylewas added.static final intIndicates that astylehas changed.static final intIndicates that astylewas removed.Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTLcyDrawingStyleRepositoryChangedEvent(int aID, Object aStyle, TLcyDrawingStyleRepository aDrawingStyleRepository) Creates a newTLcyDrawingStyleRepositoryChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns theTLcyDrawingStyleRepositorythat is the source of this change event.intgetID()Gets the id of the event.getStyle()Returns thestylethat has been changed.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
STYLE_ADDED
public static final int STYLE_ADDEDIndicates that astylewas added.- See Also:
-
STYLE_REMOVED
public static final int STYLE_REMOVEDIndicates that astylewas removed.- See Also:
-
STYLE_CHANGED
public static final int STYLE_CHANGEDIndicates that astylehas 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_ADDEDorSTYLE_REMOVED.aStyle- TheObjectinvolved in the event.aDrawingStyleRepository- TheTLcyDrawingStyleRepositoryinvolved in the event.
-
-
Method Details
-
getDrawingStyleRepository
Returns theTLcyDrawingStyleRepositorythat is the source of this change event.- Returns:
- the
TLcyDrawingStyleRepositorythat is the source of this change event.
-
getStyle
Returns thestylethat has been changed.- Returns:
- the
stylethat 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_ADDEDorSTYLE_REMOVEDorSTYLE_CHANGED.
-