java.lang.Object
org.seppiko.glf.event.BasicMarkerFactory
- All Implemented Interfaces:
IMarkerFactory
Basic Marker Factory for Marker Factory interface default implementation
- Author:
- Leonard Woo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandetachMarker(String name) Detach an existing marker.booleanChecks if the marker with the name already exists.getDetachedMarker(String name) Create a marker which is detached (even at birth) from this IMarkerFactory.Manufacture aMarkerinstance by name.
-
Constructor Details
-
BasicMarkerFactory
public BasicMarkerFactory()
-
-
Method Details
-
getMarker
Description copied from interface:IMarkerFactoryManufacture aMarkerinstance by name. If the instance has been created earlier, return the previously created instance.Null name values are not allowed.
- Specified by:
getMarkerin interfaceIMarkerFactory- Parameters:
name- the name of the marker to be created, null value is not allowed.- Returns:
- a Marker instance.
-
exists
Description copied from interface:IMarkerFactoryChecks if the marker with the name already exists. If name is null, then false is returned.- Specified by:
existsin interfaceIMarkerFactory- Parameters:
name- logger name to check for- Returns:
- true id the marker exists, false otherwise.
-
detachMarker
Description copied from interface:IMarkerFactoryDetach an existing marker.Note that after a marker is detached, there might still be "dangling" references to the detached marker.
- Specified by:
detachMarkerin interfaceIMarkerFactory- Parameters:
name- The name of the marker to detach.- Returns:
- whether the marker could be detached or not.
-
getDetachedMarker
Description copied from interface:IMarkerFactoryCreate a marker which is detached (even at birth) from this IMarkerFactory.- Specified by:
getDetachedMarkerin interfaceIMarkerFactory- Parameters:
name- marker name.- Returns:
- a dangling marker.
-