uk.ac.starlink.ttools.plot2.layer
Class EdgeForm

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.EdgeForm
All Implemented Interfaces:
ModePlotter.Form, ShapeForm

public class EdgeForm
extends Object
implements ShapeForm

ShapeForm implementation that draws lines between different points in the same row. Absolute coordinates are used.

Since:
27 Feb 2013
Author:
Mark Taylor

Nested Class Summary
static class EdgeForm.EdgeOutliner
          Outliner implementation for use with EdgeForm.
 
Constructor Summary
EdgeForm(int nEdge, DataGeom geom)
          Constructor.
 
Method Summary
 Outliner createOutliner(ConfigMap config)
          Returns an object which will do the work of drawing shapes when supplied with the appropriate style information and data.
 ConfigKey[] getConfigKeys()
          Returns style configuration keys specific to this form.
 Coord[] getExtraCoords()
          Returns data coordinates additional to the basic position which are required to plot a point.
 Icon getFormIcon()
          Returns an icon to identify this form in the GUI.
 String getFormName()
          Returns the user-directed name for this form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeForm

public EdgeForm(int nEdge,
                DataGeom geom)
Constructor. A DataGeom has to be specified so that the required coordinates can be reported.

Parameters:
nEdge - number of edges; 1 for pair, 2 for triple etc
geom - position coordinate geometry
Method Detail

getFormName

public String getFormName()
Description copied from interface: ModePlotter.Form
Returns the user-directed name for this form.

Specified by:
getFormName in interface ModePlotter.Form
Returns:
form name

getFormIcon

public Icon getFormIcon()
Description copied from interface: ModePlotter.Form
Returns an icon to identify this form in the GUI.

Specified by:
getFormIcon in interface ModePlotter.Form
Returns:
form icon

getExtraCoords

public Coord[] getExtraCoords()
Description copied from interface: ShapeForm
Returns data coordinates additional to the basic position which are required to plot a point.

Specified by:
getExtraCoords in interface ShapeForm
Returns:
additional plot coordinates

getConfigKeys

public ConfigKey[] getConfigKeys()
Description copied from interface: ShapeForm
Returns style configuration keys specific to this form. These keys will be used in the config map supplied to ShapeForm.createOutliner(uk.ac.starlink.ttools.plot2.config.ConfigMap).

Specified by:
getConfigKeys in interface ShapeForm
Returns:
config keys

createOutliner

public Outliner createOutliner(ConfigMap config)
Description copied from interface: ShapeForm
Returns an object which will do the work of drawing shapes when supplied with the appropriate style information and data. The significant keys in the supplied config map are those given by ShapeForm.getConfigKeys().

Specified by:
createOutliner in interface ShapeForm
Parameters:
config - configuration map from which values for this form's config keys will be extracted
Returns:
new outliner object


Copyright © 2013 Central Laboratory of the Research Councils. All Rights Reserved.