[569] | 1 | /* |
---|
| 2 | * $Id: LayerControl.java,v 1.3 2003/09/15 22:05:41 dwd Exp $ |
---|
| 3 | * |
---|
| 4 | * This software is provided by NOAA for full, free and open release. It is |
---|
| 5 | * understood by the recipient/user that NOAA assumes no liability for any |
---|
| 6 | * errors contained in the code. Although this software is released without |
---|
| 7 | * conditions or restrictions in its use, it is expected that appropriate |
---|
| 8 | * credit be given to its author and to the National Oceanic and Atmospheric |
---|
| 9 | * Administration should the software be included by the recipient as an |
---|
| 10 | * element in other product development. |
---|
| 11 | */ |
---|
| 12 | |
---|
| 13 | package gov.noaa.pmel.sgt; |
---|
| 14 | |
---|
| 15 | import java.awt.Graphics; |
---|
| 16 | |
---|
| 17 | /** |
---|
| 18 | * Used internally by SGT to work with <code>Layer</code> and |
---|
| 19 | * <code>LayerContainer</code>. |
---|
| 20 | * @author Donald Denbo |
---|
| 21 | * @version $Revision: 1.3 $, $Date: 2003/09/15 22:05:41 $ |
---|
| 22 | * @since 3.0 |
---|
| 23 | **/ |
---|
| 24 | public interface LayerControl { |
---|
| 25 | /** |
---|
| 26 | * Used internally by sgt. |
---|
| 27 | * @param pane Parent pane |
---|
| 28 | */ |
---|
| 29 | void setPane(AbstractPane pane); |
---|
| 30 | /** |
---|
| 31 | * Used internally by sgt. |
---|
| 32 | * @param g Graphics object |
---|
| 33 | * @throws PaneNotFoundException Pane not found. |
---|
| 34 | */ |
---|
| 35 | void draw(Graphics g) throws PaneNotFoundException; |
---|
| 36 | /** |
---|
| 37 | * Used internally by sgt. |
---|
| 38 | * @since 2.0 |
---|
| 39 | * @param g Graphics object. |
---|
| 40 | * @throws PaneNotFoundException Pane not found. |
---|
| 41 | */ |
---|
| 42 | void drawDraggableItems(Graphics g) throws PaneNotFoundException; |
---|
| 43 | |
---|
| 44 | /** |
---|
| 45 | * Get identifier of layer. Internally uses getName() method for <code>Panel</code>. |
---|
| 46 | * @since 3.0 |
---|
| 47 | * @return identifier |
---|
| 48 | */ |
---|
| 49 | String getId(); |
---|
| 50 | } |
---|