Importing release version 322 from old repos
This commit is contained in:
38
src/wsi/ra/chart2d/DPointIcon.java
Normal file
38
src/wsi/ra/chart2d/DPointIcon.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package wsi.ra.chart2d;
|
||||
|
||||
/**
|
||||
* Filename: $RCSfile: DPointIcon.java,v $
|
||||
* Purpose:
|
||||
* Language: Java
|
||||
* Compiler: JDK 1.3
|
||||
* Authors: Fabian Hennecke
|
||||
* Version:
|
||||
* Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany
|
||||
*/
|
||||
|
||||
import java.awt.Graphics;
|
||||
/**
|
||||
* A simple interface which can be used to paint certain icons at DPoints
|
||||
* ( @see chart2d.DPoint.setIcon or chart2d.DPointSet.setIcon ).
|
||||
* Different points may be easier recognized in a complex graph.
|
||||
* The container does not guarantee that the whole icon is visible in the graph
|
||||
* because the icon does not concern the DRectangle of the DElement.
|
||||
*/
|
||||
|
||||
public interface DPointIcon {
|
||||
|
||||
/**
|
||||
* this method has to be overridden to paint the icon. The point itself lies
|
||||
* at coordinates (0, 0)
|
||||
*/
|
||||
void paint( Graphics g );
|
||||
|
||||
/**
|
||||
* the border which is necessary to be paint around the DPoint that the whole
|
||||
* icon is visible
|
||||
*
|
||||
* @return the border
|
||||
*/
|
||||
DBorder getDBorder();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user