36 lines
718 B
Java
36 lines
718 B
Java
package org.insa.graphics.drawing.overlays;
|
|
|
|
import java.awt.Color;
|
|
|
|
public interface Overlay {
|
|
|
|
/**
|
|
* Set the color of this overlay.
|
|
*
|
|
* @param color New color for the overlay.
|
|
*/
|
|
public void setColor(Color color);
|
|
|
|
/**
|
|
* @return The current color of this overlay.
|
|
*/
|
|
public Color getColor();
|
|
|
|
/**
|
|
* Show or hide this marker - A marker should be visible when created.
|
|
*
|
|
* @param visible true to show the marker, false to hide.
|
|
*/
|
|
public void setVisible(boolean visible);
|
|
|
|
/**
|
|
* @return true if this overlay is visible.
|
|
*/
|
|
public boolean isVisible();
|
|
|
|
/**
|
|
* Delete this marker.
|
|
*/
|
|
public void delete();
|
|
|
|
}
|