hep.wired.heprep.services
Interface DrawAs

All Superinterfaces:
UVWindices, WiredRegistry.ID, XYZindices
All Known Implementing Classes:
AbstractDrawAs, DrawAsCircle, DrawAsCurve, DrawAsCylinder, DrawAsEllipse, DrawAsEllipsePrism, DrawAsEllipsoid, DrawAsLine, DrawAsPoint, DrawAsPolygon, DrawAsPrism, DrawAsText

public interface DrawAs
extends WiredRegistry.ID, XYZindices, UVWindices

Converts a HepRepInstance (and its attributes and HepRepPoints) into a visual representation on the plot.

Version:
$Id: DrawAs.java 8598 2006-08-14 20:38:02Z duns $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from interface hep.wired.util.XYZindices
X, Y, Z
 
Fields inherited from interface hep.wired.util.UVWindices
U, V, W
 
Method Summary
 void draw(org.freehep.graphics2d.VectorGraphics graphics, HepRepInstance instance, Attributes atts, GraphicsMode mode, Projection projection, ViewPort viewPort)
          Draws an HepRepInstance into VectorGraphics using given Attributes.
 void frame(org.freehep.graphics2d.VectorGraphics graphics, HepRepInstance instance, Attributes atts, GraphicsMode mode, Projection projection, ViewPort viewPort)
          Draws a frame of an HepRepInstance into VectorGraphics using given Attributes.
 String getDescription()
          Describes what this DrawAs value does.
 String getKey()
          Returns DrawAs key
 String getName()
          Returns a short name.
 
Methods inherited from interface hep.wired.util.WiredRegistry.ID
getID
 

Method Detail

getKey

String getKey()
Returns DrawAs key


getName

String getName()
Returns a short name.


getDescription

String getDescription()
Describes what this DrawAs value does.


draw

void draw(org.freehep.graphics2d.VectorGraphics graphics,
          HepRepInstance instance,
          Attributes atts,
          GraphicsMode mode,
          Projection projection,
          ViewPort viewPort)
Draws an HepRepInstance into VectorGraphics using given Attributes. Color and LineWidth are already set correctly for drawing. The attribute "fill" should be checked if filling applies.


frame

void frame(org.freehep.graphics2d.VectorGraphics graphics,
           HepRepInstance instance,
           Attributes atts,
           GraphicsMode mode,
           Projection projection,
           ViewPort viewPort)
Draws a frame of an HepRepInstance into VectorGraphics using given Attributes. Color and LineWidth are NOT set.



Copyright © 1996-2013 FreeHEP. All Rights Reserved.