org.eclipse.graphiti.mm.pictograms.util
Class PictogramsAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by org.eclipse.graphiti.mm.pictograms.util.PictogramsAdapterFactory

public class PictogramsAdapterFactory
extends AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
PictogramsPackage

Field Summary
protected static PictogramsPackage modelPackage
          The cached model package.
protected  PictogramsSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
PictogramsAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createAdvancedAnchorAdapter()
          Creates a new adapter for an object of class 'Advanced Anchor'.
 Adapter createAnchorAdapter()
          Creates a new adapter for an object of class 'Anchor'.
 Adapter createAnchorContainerAdapter()
          Creates a new adapter for an object of class 'Anchor Container'.
 Adapter createBoxRelativeAnchorAdapter()
          Creates a new adapter for an object of class 'Box Relative Anchor'.
 Adapter createChopboxAnchorAdapter()
          Creates a new adapter for an object of class 'Chopbox Anchor'.
 Adapter createCompositeConnectionAdapter()
          Creates a new adapter for an object of class ' Composite Connection'.
 Adapter createConnectionAdapter()
          Creates a new adapter for an object of class 'Connection'.
 Adapter createConnectionDecoratorAdapter()
          Creates a new adapter for an object of class 'Connection Decorator'.
 Adapter createContainerShapeAdapter()
          Creates a new adapter for an object of class 'Container Shape'.
 Adapter createCurvedConnectionAdapter()
          Creates a new adapter for an object of class ' Curved Connection'.
 Adapter createDiagramAdapter()
          Creates a new adapter for an object of class 'Diagram'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createFixPointAnchorAdapter()
          Creates a new adapter for an object of class 'Fix Point Anchor'.
 Adapter createFreeFormConnectionAdapter()
          Creates a new adapter for an object of class 'Free Form Connection'.
 Adapter createGraphicsAlgorithmContainerAdapter()
          Creates a new adapter for an object of class 'Graphics Algorithm Container'.
 Adapter createManhattanConnectionAdapter()
          Creates a new adapter for an object of class 'Manhattan Connection'.
 Adapter createPictogramElementAdapter()
          Creates a new adapter for an object of class 'Pictogram Element'.
 Adapter createPictogramLinkAdapter()
          Creates a new adapter for an object of class 'Pictogram Link'.
 Adapter createPropertyContainerAdapter()
          Creates a new adapter for an object of class 'Property Container'.
 Adapter createShapeAdapter()
          Creates a new adapter for an object of class 'Shape'.
 Adapter createStyleContainerAdapter()
          Creates a new adapter for an object of class 'Style Container'.
 boolean isFactoryForType(Object object)
          Returns whether this factory is applicable for the type of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static PictogramsPackage modelPackage
The cached model package.


modelSwitch

protected PictogramsSwitch<Adapter> modelSwitch
The switch that delegates to the createXXX methods.

Constructor Detail

PictogramsAdapterFactory

public PictogramsAdapterFactory()
Creates an instance of the adapter factory.

Method Detail

isFactoryForType

public boolean isFactoryForType(Object object)
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.

Returns:
whether this factory is applicable for the type of the object.

createAdapter

public Adapter createAdapter(Notifier target)
Creates an adapter for the target.

Parameters:
target - the object to adapt.
Returns:
the adapter for the target.

createShapeAdapter

public Adapter createShapeAdapter()
Creates a new adapter for an object of class 'Shape'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Shape

createContainerShapeAdapter

public Adapter createContainerShapeAdapter()
Creates a new adapter for an object of class 'Container Shape'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
ContainerShape

createDiagramAdapter

public Adapter createDiagramAdapter()
Creates a new adapter for an object of class 'Diagram'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Diagram

createPictogramElementAdapter

public Adapter createPictogramElementAdapter()
Creates a new adapter for an object of class 'Pictogram Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
PictogramElement

createConnectionAdapter

public Adapter createConnectionAdapter()
Creates a new adapter for an object of class 'Connection'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Connection

createAnchorAdapter

public Adapter createAnchorAdapter()
Creates a new adapter for an object of class 'Anchor'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Anchor

createAnchorContainerAdapter

public Adapter createAnchorContainerAdapter()
Creates a new adapter for an object of class 'Anchor Container'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
AnchorContainer

createFixPointAnchorAdapter

public Adapter createFixPointAnchorAdapter()
Creates a new adapter for an object of class 'Fix Point Anchor'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
FixPointAnchor

createBoxRelativeAnchorAdapter

public Adapter createBoxRelativeAnchorAdapter()
Creates a new adapter for an object of class 'Box Relative Anchor'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
BoxRelativeAnchor

createChopboxAnchorAdapter

public Adapter createChopboxAnchorAdapter()
Creates a new adapter for an object of class 'Chopbox Anchor'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
ChopboxAnchor

createConnectionDecoratorAdapter

public Adapter createConnectionDecoratorAdapter()
Creates a new adapter for an object of class 'Connection Decorator'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
ConnectionDecorator

createFreeFormConnectionAdapter

public Adapter createFreeFormConnectionAdapter()
Creates a new adapter for an object of class 'Free Form Connection'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
FreeFormConnection

createManhattanConnectionAdapter

public Adapter createManhattanConnectionAdapter()
Creates a new adapter for an object of class 'Manhattan Connection'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
ManhattanConnection

createPictogramLinkAdapter

public Adapter createPictogramLinkAdapter()
Creates a new adapter for an object of class 'Pictogram Link'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
PictogramLink

createAdvancedAnchorAdapter

public Adapter createAdvancedAnchorAdapter()
Creates a new adapter for an object of class 'Advanced Anchor'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
Since:
0.9
See Also:
AdvancedAnchor

createCurvedConnectionAdapter

public Adapter createCurvedConnectionAdapter()
Creates a new adapter for an object of class ' Curved Connection'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
Since:
0.9
See Also:
CurvedConnection

createCompositeConnectionAdapter

public Adapter createCompositeConnectionAdapter()
Creates a new adapter for an object of class ' Composite Connection'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
Since:
0.9
See Also:
CompositeConnection

createPropertyContainerAdapter

public Adapter createPropertyContainerAdapter()
Creates a new adapter for an object of class 'Property Container'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
PropertyContainer

createGraphicsAlgorithmContainerAdapter

public Adapter createGraphicsAlgorithmContainerAdapter()
Creates a new adapter for an object of class 'Graphics Algorithm Container'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
GraphicsAlgorithmContainer

createStyleContainerAdapter

public Adapter createStyleContainerAdapter()
Creates a new adapter for an object of class 'Style Container'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
StyleContainer

createEObjectAdapter

public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.


Copyright (c) SAP AG 2005, 2012.