public abstract class AbstractOfficeFloorFigure extends Object implements OfficeFloorFigure
OfficeFloorFigure
.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 . |
public AbstractOfficeFloorFigure(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.IFigure contentPane)
figure
- IFigure
to represent the EditPart
.contentPane
- IFigure
to add children of this EditPart
.public AbstractOfficeFloorFigure(org.eclipse.draw2d.IFigure figure)
IFigure
.figure
- IFigure
to represent the EditPart
and also
potentially have children added.public AbstractOfficeFloorFigure()
Allow complex creation of IFigure
within the constructor.
Using this constructor you must ensure setFigure(IFigure)
is
called with the IFigure
.
setFigure(IFigure)
,
setContentPane(IFigure)
protected void setFigure(org.eclipse.draw2d.IFigure figure)
IFigure
.figure
- IFigure
.protected void setContentPane(org.eclipse.draw2d.IFigure contentPane)
contentPane
- Content pane IFigure
.protected void registerConnectionAnchor(Class<? extends ConnectionModel> connectionModelType, org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
ConnectionAnchor
.connectionModelType
- ConnectionModel
type for the connection.connectionAnchor
- ConnectionAnchor
for the connection.protected void registerSourceConnectionAnchor(Class<? extends ConnectionModel> connectionModelType, org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
ConnectionAnchor
.connectionModelType
- ConnectionModel
type for the connection.connectionAnchor
- Source ConnectionAnchor
for the connection.protected void registerTargetConnectionAnchor(Class<? extends ConnectionModel> connectionModelType, org.eclipse.draw2d.ConnectionAnchor connectionAnchor)
ConnectionAnchor
.connectionModelType
- ConnectionModel
type for the connection.connectionAnchor
- Target ConnectionAnchor
for the connection.public org.eclipse.draw2d.IFigure getFigure()
OfficeFloorFigure
IFigure
to represent the EditPart
.getFigure
in interface OfficeFloorFigure
IFigure
to represent the EditPart
.public org.eclipse.draw2d.IFigure getContentPane()
OfficeFloorFigure
IFigure
to add children of this EditPart
.getContentPane
in interface OfficeFloorFigure
IFigure
to add children of this EditPart
.public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(Class<?> connectionModelType)
OfficeFloorFigure
ConnectionAnchor
for the particular
ConnectionModel
type.getSourceConnectionAnchor
in interface OfficeFloorFigure
connectionModelType
- ConnectionModel
type.ConnectionAnchor
.public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(Class<?> connectionModelType)
OfficeFloorFigure
ConnectionAnchor
for the particular
ConnectionModel
type.getTargetConnectionAnchor
in interface OfficeFloorFigure
connectionModelType
- ConnectionModel
type.ConnectionAnchor
.Copyright © 2005–2016. All rights reserved.