1
2 package hep.wired.heprep.services;
3
4 import org.freehep.graphics2d.VectorGraphics;
5 import hep.graphics.heprep.HepRepInstance;
6
7 import hep.wired.services.ViewPort;
8 import hep.wired.util.XYZindices;
9 import hep.wired.util.UVWindices;
10 import hep.wired.util.WiredRegistry;
11
12 /***
13 * Converts a HepRepInstance (and its attributes and HepRepPoints) into a
14 * visual representation on the plot.
15 *
16 * @author Mark Donszelmann
17 * @version $Id: DrawAs.java 2085 2005-07-20 17:55:45Z duns $
18 */
19
20 public interface DrawAs extends WiredRegistry.ID, XYZindices, UVWindices {
21
22 /***
23 * Returns DrawAs key
24 */
25 public String getKey();
26
27 /***
28 * Returns a short name.
29 */
30 public String getName();
31
32 /***
33 * Describes what this DrawAs value does.
34 */
35 public String getDescription();
36
37 /***
38 * Draws an HepRepInstance into VectorGraphics using given Attributes.
39 * Color and LineWidth are already set correctly for drawing.
40 * The attribute "fill" should be checked if filling applies.
41 */
42 public void draw(VectorGraphics graphics, HepRepInstance instance,
43 Attributes atts, GraphicsMode mode,
44 Projection projection, ViewPort viewPort);
45
46 /***
47 * Draws a frame of an HepRepInstance into VectorGraphics using given Attributes.
48 * Color and LineWidth are NOT set.
49 */
50 public void frame(VectorGraphics graphics, HepRepInstance instance,
51 Attributes atts, GraphicsMode mode,
52 Projection projection, ViewPort viewPort);
53 }