Package adams.gui.visualization.image
Interface TypeColorProvider
-
- All Superinterfaces:
CleanUpHandler
,Destroyable
,ImageOverlay
,OptionHandler
- All Known Implementing Classes:
AbstractObjectOverlayFromReport
,AbstractPointOverlayFromReport
,ObjectCentersOverlayFromReport
,ObjectLocationsOverlayFromReport
,SimplePointOverlayFromReport
public interface TypeColorProvider extends ImageOverlay
Interface for image overlays that give access to colors per type (aka label).- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addLocationsUpdatedListeners(ChangeListener l)
Adds the listener for location updates.Color
getTypeColor(String type)
Returns the color for the object type.boolean
hasTypeColor(String type)
Checks whether a color has been stored for the given object type.void
removeLocationsUpdatedListeners(ChangeListener l)
Removes the listener for location updates.-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.gui.visualization.image.ImageOverlay
imageChanged, overlayAdded, overlayRemoved, paintOverlay
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
hasTypeColor
boolean hasTypeColor(String type)
Checks whether a color has been stored for the given object type.- Parameters:
type
- the type to check- Returns:
- true if custom color available
-
getTypeColor
Color getTypeColor(String type)
Returns the color for the object type.- Parameters:
type
- the type to get the color for- Returns:
- the color, null if none available
-
addLocationsUpdatedListeners
void addLocationsUpdatedListeners(ChangeListener l)
Adds the listener for location updates.- Parameters:
l
- the listener to add
-
removeLocationsUpdatedListeners
void removeLocationsUpdatedListeners(ChangeListener l)
Removes the listener for location updates.- Parameters:
l
- the listener to remove
-
-