net.officefloor.eclipse.skin.standard
Class AbstractOfficeFloorFigure

java.lang.Object
  extended by net.officefloor.eclipse.skin.standard.AbstractOfficeFloorFigure
All Implemented Interfaces:
OfficeFloorFigure
Direct Known Subclasses:
ConformModelFigure, ExistingConformModelItemFigure, OfficeFloorFigureImpl, StandardAdministratorFigure, StandardDeployedOfficeFigure, StandardDeployedOfficeInputFigure, StandardDeployedOfficeObjectFigure, StandardDeployedOfficeTeamFigure, StandardDeskManagedObjectDependencyFigure, StandardDeskManagedObjectFigure, StandardDeskManagedObjectSourceFigure, StandardDeskManagedObjectSourceFlowFigure, StandardDutyFigure, StandardExternalFlowFigure, StandardExternalFlowFigure, StandardExternalManagedObjectFigure, StandardExternalManagedObjectFigure, StandardExternalManagedObjectFigure, StandardOfficeEscalationFigure, StandardOfficeFloorInputManagedObjectFigure, StandardOfficeFloorManagedObjectDependencyFigure, StandardOfficeFloorManagedObjectFigure, StandardOfficeFloorManagedObjectSourceFigure, StandardOfficeFloorManagedObjectSourceFlowFigure, StandardOfficeFloorManagedObjectSourceInputDependencyFigure, StandardOfficeFloorManagedObjectSourceTeamFigure, StandardOfficeFloorTeamFigure, StandardOfficeInputManagedObjectDependencyFigure, StandardOfficeManagedObjectDependencyFigure, StandardOfficeManagedObjectFigure, StandardOfficeManagedObjectSourceFigure, StandardOfficeManagedObjectSourceFlowFigure, StandardOfficeManagedObjectSourceTeamFigure, StandardOfficeSectionFigure, StandardOfficeSectionInputFigure, StandardOfficeSectionObjectFigure, StandardOfficeSectionOutputFigure, StandardOfficeSectionResponsibilityFigure, StandardOfficeStartFigure, StandardOfficeSubSectionFigure, StandardOfficeTaskFigure, StandardOfficeTeamFigure, StandardSectionManagedObjectDependencyFigure, StandardSectionManagedObjectFigure, StandardSectionManagedObjectSourceFigure, StandardSectionManagedObjectSourceFlowFigure, StandardSubSectionFigure, StandardSubSectionInputFigure, StandardSubSectionObjectFigure, StandardSubSectionOutputFigure, StandardTaskAdministrationJoinPointFigure, StandardTaskEscalationFigure, StandardTaskFigure, StandardTaskFlowFigure, StandardWorkFigure, StandardWorkTaskFigure, StandardWorkTaskObjectFigure, TargetConformModelItemFigure

public abstract class AbstractOfficeFloorFigure
extends Object
implements OfficeFloorFigure

Abstract OfficeFloorFigure.

Author:
Daniel Sagenschneider

Constructor Summary
AbstractOfficeFloorFigure()
           Allow complex creation of IFigure within the constructor.
AbstractOfficeFloorFigure(org.eclipse.draw2d.IFigure figure)
          Initiate to add children to top level IFigure.
AbstractOfficeFloorFigure(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.IFigure contentPane)
          Initiate.
 
Method Summary
 org.eclipse.draw2d.IFigure getContentPane()
          Obtains the IFigure to add children of this EditPart.
 org.eclipse.draw2d.IFigure getFigure()
          Obtains the IFigure to represent the EditPart.
 org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(Class<?> connectionModelType)
          Obtains the source ConnectionAnchor for the particular ConnectionModel type.
 org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(Class<?> connectionModelType)
          Obtains the target ConnectionAnchor for the particular ConnectionModel type.
protected  void registerConnectionAnchor(Class<? extends ConnectionModel> connectionModelType, org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
          Registers a ConnectionAnchor.
protected  void registerSourceConnectionAnchor(Class<? extends ConnectionModel> connectionModelType, org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
          Registers a source ConnectionAnchor.
protected  void registerTargetConnectionAnchor(Class<? extends ConnectionModel> connectionModelType, org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
          Registers a target ConnectionAnchor.
protected  void setContentPane(org.eclipse.draw2d.IFigure contentPane)
          Specifies the content pane.
protected  void setFigure(org.eclipse.draw2d.IFigure figure)
          Specifies the IFigure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOfficeFloorFigure

public AbstractOfficeFloorFigure(org.eclipse.draw2d.IFigure figure,
                                 org.eclipse.draw2d.IFigure contentPane)
Initiate.

Parameters:
figure - IFigure to represent the EditPart.
contentPane - IFigure to add children of this EditPart.

AbstractOfficeFloorFigure

public AbstractOfficeFloorFigure(org.eclipse.draw2d.IFigure figure)
Initiate to add children to top level IFigure.

Parameters:
figure - IFigure to represent the EditPart and also potentially have children added.

AbstractOfficeFloorFigure

public AbstractOfficeFloorFigure()

Allow complex creation of IFigure within the constructor.

Using this constructor you must ensure setFigure(IFigure) is called with the IFigure.

See Also:
setFigure(IFigure), setContentPane(IFigure)
Method Detail

setFigure

protected void setFigure(org.eclipse.draw2d.IFigure figure)
Specifies the IFigure.

Parameters:
figure - IFigure.

setContentPane

protected void setContentPane(org.eclipse.draw2d.IFigure contentPane)
Specifies the content pane.

Parameters:
contentPane - Content pane IFigure.

registerConnectionAnchor

protected void registerConnectionAnchor(Class<? extends ConnectionModel> connectionModelType,
                                        org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
Registers a ConnectionAnchor.

Parameters:
connectionModelType - ConnectionModel type for the connection.
connectionAnchor - ConnectionAnchor for the connection.

registerSourceConnectionAnchor

protected void registerSourceConnectionAnchor(Class<? extends ConnectionModel> connectionModelType,
                                              org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
Registers a source ConnectionAnchor.

Parameters:
connectionModelType - ConnectionModel type for the connection.
connectionAnchor - Source ConnectionAnchor for the connection.

registerTargetConnectionAnchor

protected void registerTargetConnectionAnchor(Class<? extends ConnectionModel> connectionModelType,
                                              org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
Registers a target ConnectionAnchor.

Parameters:
connectionModelType - ConnectionModel type for the connection.
connectionAnchor - Target ConnectionAnchor for the connection.

getFigure

public org.eclipse.draw2d.IFigure getFigure()
Description copied from interface: OfficeFloorFigure
Obtains the IFigure to represent the EditPart.

Specified by:
getFigure in interface OfficeFloorFigure
Returns:
IFigure to represent the EditPart.

getContentPane

public org.eclipse.draw2d.IFigure getContentPane()
Description copied from interface: OfficeFloorFigure
Obtains the IFigure to add children of this EditPart.

Specified by:
getContentPane in interface OfficeFloorFigure
Returns:
IFigure to add children of this EditPart.

getSourceConnectionAnchor

public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(Class<?> connectionModelType)
Description copied from interface: OfficeFloorFigure
Obtains the source ConnectionAnchor for the particular ConnectionModel type.

Specified by:
getSourceConnectionAnchor in interface OfficeFloorFigure
Parameters:
connectionModelType - ConnectionModel type.
Returns:
ConnectionAnchor.

getTargetConnectionAnchor

public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(Class<?> connectionModelType)
Description copied from interface: OfficeFloorFigure
Obtains the target ConnectionAnchor for the particular ConnectionModel type.

Specified by:
getTargetConnectionAnchor in interface OfficeFloorFigure
Parameters:
connectionModelType - ConnectionModel type.
Returns:
ConnectionAnchor.


Copyright © 2005-2013. All Rights Reserved.