com.tensegrity.composite
Class CompositeFactory

java.lang.Object
  extended bycom.tensegrity.composite.CompositeFactory

public abstract class CompositeFactory
extends java.lang.Object

The CompositeFactory is the facility where to create a new CompositeLine, a new Composite, a new CompositeGroup, a new CompositeView and all interfaces that generalizes them.

Version:
$Id: CompositeFactory.java,v 1.34 2005/05/23 14:35:25 AndreasEbbert Exp $
Author:
MichaelKegel

Constructor Summary
protected CompositeFactory()
          Default constructor that will get called by extending classes.
 
Method Summary
abstract  Composite newComposite(Composite composite)
          Creates a new Composite which is an exact copy of the given Composite.
abstract  Composite newComposite(CoordinateSystem coordSystem)
          Creates a new Composite with the given CoordinateSystem.
abstract  Composite newComposite(GeometryDescriptor geometry)
          Creates a new Composite from the GeometryDescriptor given by geometry.
abstract  CompositeGroup newCompositeGroup(CompositeGroup compositegroup)
          Creates a new CompositeGroup which is an exact copy of the given CompositeGroup.
abstract  CompositeGroup newCompositeGroup(CoordinateSystem coordSystem)
          Creates a new CompositeGroup with the given CoordinateSystem.
abstract  CompositeGroup newCompositeGroup(CoordinateSystem coordSystemReference, CoordinateSystem coordSystem)
           
abstract  CompositeGroup newCompositeGroup(GeometryDescriptor geometry)
          Creates a new CompositeGroup from the GeometryDescriptor given by geometry.
abstract  CompositeLabel newCompositeLabel(CoordinateSystem coordSystem)
           
abstract  CompositeLine newCompositeLine()
          Creates a new CompositeLine.
abstract  CompositeLine newCompositeLine(Line2D line)
          creates a new CompositeLine from Line2D the given by line.
abstract  CompositeLine newCompositeLine(Polyline2D polyline)
          creates a new CompositeLine from Polyline2D the given by polyline.
abstract  CompositeSwimLane newCompositeSwimLane(CoordinateSystem coordSystem)
          Creates a new CompositeSwimLane with the CoordinateSytem given by coordSystem.
abstract  CompositeSwimLane newCompositeSwimLane(GeometryDescriptor geometry)
          Creates a new CompositeSwimLane with the CoordinateSytem given by coordSystem.
abstract  CompositeSwimLanePool newCompositeSwimLanePool(CoordinateSystem coordSystem)
          Creates a new CompositeSwimLanePool with the CoordinateSytem given by coordSystem.
abstract  CompositeTable newCompositeTable(CoordinateSystem coordSystem)
          Creates a new CompositeTable using the CoordinateSystem given by parameter coordSystem.
abstract  CompositeTable newCompositeTable(CoordinateSystem coordSystem, com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Creates a new CompositeTable that uses the given CoordinateSystem and the given CompositeTableModel.
abstract  CompositeTable newCompositeTable(CoordinateSystem coordSystem, int columns, int rows)
          Creates a new CompositeTable with the given number of columns and rows.
abstract  CompositeTable newCompositeTable(CoordinateSystem coordSystem, java.lang.Object[] columnHeaders, java.lang.Object[] rowHeaders)
          Creates a new CompositeTable with the CoordinateSystem given by parameter coordSystem.
abstract  CompositeView newCompositeView()
          Creates a new CompositeView.
abstract  CompositeView newCompositeView(CompositeView view)
          Creates a new CompositeView which is an exact copy of the given CompositeView.
abstract  CompositeView newCompositeView(java.util.List composites)
          Creates a new CompositeView.
static CompositeFactory newInstance()
          Returns an instance of a CompositeFactory which can be used to create objects from the composite framework.
abstract  CompositeNavigator newNavigator()
          Creates a new CompositeNavigator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeFactory

protected CompositeFactory()
Default constructor that will get called by extending classes.

Method Detail

newCompositeView

public abstract CompositeView newCompositeView()
Creates a new CompositeView.

Returns:
CompositeView the new created CompositeView.

newCompositeView

public abstract CompositeView newCompositeView(java.util.List composites)
Creates a new CompositeView. The given List of BaseComposites wil be added to the newly created CompositeView.

Parameters:
composites - the List of BaseComposites which should be added to the CompositeView
Returns:
CompositeView the newly created CompositeView

newCompositeView

public abstract CompositeView newCompositeView(CompositeView view)
Creates a new CompositeView which is an exact copy of the given CompositeView.

Parameters:
view - the CompositeView to make a copy from
Returns:
CompositeView the copied CompositeView

newNavigator

public abstract CompositeNavigator newNavigator()
Creates a new CompositeNavigator.

Returns:
CompositeNavigator the new created CompositeNavigator

newCompositeLine

public abstract CompositeLine newCompositeLine()
Creates a new CompositeLine.

Returns:
CompositeLine the new created CompositeLine
See Also:
Line2DModel

newCompositeLine

public abstract CompositeLine newCompositeLine(Line2D line)
creates a new CompositeLine from Line2D the given by line.

Parameters:
line - the Line2D to create the CompositeLine from
Returns:
CompositeLine the new created CompositeLine
See Also:
Line2D

newCompositeLine

public abstract CompositeLine newCompositeLine(Polyline2D polyline)
creates a new CompositeLine from Polyline2D the given by polyline.

Parameters:
polyline - the Polyline2D to create the CompositeLine from
Returns:
CompositeLine the new created CompositeLine
See Also:
Polyline2D

newComposite

public abstract Composite newComposite(CoordinateSystem coordSystem)
Creates a new Composite with the given CoordinateSystem.

Parameters:
coordSystem - the CoordinateSystem the created Composite should use
Returns:
Composite the new created Composite

newComposite

public abstract Composite newComposite(GeometryDescriptor geometry)
                                throws GeometryNotSupportedException
Creates a new Composite from the GeometryDescriptor given by geometry.

Parameters:
geometry - the GeometryDescriptor to create the Composite from
Returns:
Composite the new created Composite
Throws:
GeometryNotSupportedException - is thrown if the GeometryDescriptor is not supported by a Composite

newComposite

public abstract Composite newComposite(Composite composite)
Creates a new Composite which is an exact copy of the given Composite.

Parameters:
composite - the Composite to make a copy from
Returns:
Composite the copied Composite

newCompositeGroup

public abstract CompositeGroup newCompositeGroup(CoordinateSystem coordSystem)
Creates a new CompositeGroup with the given CoordinateSystem.

Parameters:
coordSystem - the CoordinateSystem the created CompositeGroup should use
Returns:
CompositeGroup the new created CompositeGroup

newCompositeGroup

public abstract CompositeGroup newCompositeGroup(CoordinateSystem coordSystemReference,
                                                 CoordinateSystem coordSystem)

newCompositeGroup

public abstract CompositeGroup newCompositeGroup(GeometryDescriptor geometry)
                                          throws GeometryNotSupportedException
Creates a new CompositeGroup from the GeometryDescriptor given by geometry.

Parameters:
geometry - the GeometryDescriptor to create the CompositeGroup from
Returns:
CompositeGroup the new created CompositeGroup
Throws:
GeometryNotSupportedException - is thrown if the GeometryDescriptor is not supported by a CompositeGroup

newCompositeGroup

public abstract CompositeGroup newCompositeGroup(CompositeGroup compositegroup)
Creates a new CompositeGroup which is an exact copy of the given CompositeGroup.

Parameters:
compositegroup - the CompositeGroup to make a copy from
Returns:
CompositeGroup the copied CompositeGroup

newCompositeSwimLane

public abstract CompositeSwimLane newCompositeSwimLane(CoordinateSystem coordSystem)
Creates a new CompositeSwimLane with the CoordinateSytem given by coordSystem.

Parameters:
coordSystem - the CoordinateSystem for the new CompositeSwimLane
Returns:
CompositeSwimLane the new created CompositeSwimLane

newCompositeSwimLane

public abstract CompositeSwimLane newCompositeSwimLane(GeometryDescriptor geometry)
                                                throws GeometryNotSupportedException
Creates a new CompositeSwimLane with the CoordinateSytem given by coordSystem.

Parameters:
geometry - the GeometryDescriptor to create the CompositeSwimLane from
Returns:
CompositeSwimLane the new created CompositeSwimLane
Throws:
GeometryNotSupportedException - is thrown if the GeometryDescriptor is not supported by a CompositeSwimLane

newCompositeSwimLanePool

public abstract CompositeSwimLanePool newCompositeSwimLanePool(CoordinateSystem coordSystem)
Creates a new CompositeSwimLanePool with the CoordinateSytem given by coordSystem.

Parameters:
coordSystem - the CoordinateSystem for the new CompositeSwimLanePool
Returns:
CompositeSwimLanePool the new created CompositeSwimLanePool

newCompositeTable

public abstract CompositeTable newCompositeTable(CoordinateSystem coordSystem)
Creates a new CompositeTable using the CoordinateSystem given by parameter coordSystem.

Parameters:
coordSystem - the CoordinateSystem for the CompositeTable.
Returns:
CompositeTable the newly created CompositeTable

Find more information in the class documentation


newCompositeTable

public abstract CompositeTable newCompositeTable(CoordinateSystem coordSystem,
                                                 int columns,
                                                 int rows)
Creates a new CompositeTable with the given number of columns and rows. The CoordinateSystem to be used is given by parameter coordSystem.

Parameters:
coordSystem - the CoordinateSystem
columns - number of columns
rows - number of row to be displayed
Returns:
CompositeTable the newly created CompositeTable

Find more information in the class documentation


newCompositeTable

public abstract CompositeTable newCompositeTable(CoordinateSystem coordSystem,
                                                 java.lang.Object[] columnHeaders,
                                                 java.lang.Object[] rowHeaders)
Creates a new CompositeTable with the CoordinateSystem given by parameter coordSystem. The column headers of the table are specified with parameter columnHeaders, the row headers with the given array rowHeaders. The resulting table will have columnHeaders.length() columns and rowHeaders.length() rows.

Parameters:
coordSystem - the CoordinateSystem for the CompositeTable.
columnHeaders - Column-headers
rowHeaders - Row-headers
Returns:
CompositeTable the newly created CompositeTable

Find more information in the class documentation


newCompositeTable

public abstract CompositeTable newCompositeTable(CoordinateSystem coordSystem,
                                                 com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
                                          throws com.tensegrity.composite.defaultimpl.table.CompositeTableException
Creates a new CompositeTable that uses the given CoordinateSystem and the given CompositeTableModel.

Parameters:
coordSystem -
model - Table-Model
Returns:
CompositeTable the newly created CompositeTable
Throws:
com.tensegrity.composite.defaultimpl.table.CompositeTableException

Find more information in the class documentation


newCompositeLabel

public abstract CompositeLabel newCompositeLabel(CoordinateSystem coordSystem)

newInstance

public static CompositeFactory newInstance()
Returns an instance of a CompositeFactory which can be used to create objects from the composite framework.

Returns:
CompositeFactory the CompositeFactory instance


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.