Package com._1c.g5.v8.dt.bp.scheme.ui
Class DummyDiagram
- java.lang.Object
-
- com._1c.g5.v8.dt.bp.scheme.ui.DummyDiagram
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.ui.IDiagram
public class DummyDiagram extends Object implements com._1c.g5.v8.dt.diagram.framework.ui.IDiagram
Implementation ofIDiagram
. Represents dummy diagram. Dummy diagram does not contain any figures or connections.
-
-
Constructor Summary
Constructors Constructor Description DummyDiagram()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnection(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection connection)
void
addFigure(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure figure)
void
clearSelection()
boolean
contains(org.eclipse.draw2d.IFigure figure)
boolean
containsSelection(org.eclipse.draw2d.IFigure figure)
void
deselectFigure(org.eclipse.draw2d.IFigure figure)
Collection<? extends com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection>
getConnections()
Collection<? extends com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure>
getFigures()
static com._1c.g5.v8.dt.diagram.framework.ui.IDiagram
getInstance()
Returns instance of this class.Collection<? extends org.eclipse.draw2d.Connection>
getSelectedConnections()
Collection<? extends org.eclipse.draw2d.IFigure>
getSelectedFigures()
void
removeConnection(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection connections)
void
removeConnections(Collection<com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection> connections)
void
removeFigure(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure figure)
void
removeFigures(Collection<com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure> figures)
void
selectFigure(org.eclipse.draw2d.IFigure figure)
-
-
-
Method Detail
-
getInstance
public static com._1c.g5.v8.dt.diagram.framework.ui.IDiagram getInstance()
Returns instance of this class.- Returns:
- instance of this class. Can't return
null
.
-
addFigure
public void addFigure(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure figure)
- Specified by:
addFigure
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
addConnection
public void addConnection(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection connection)
- Specified by:
addConnection
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
getFigures
public Collection<? extends com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure> getFigures()
- Specified by:
getFigures
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
getConnections
public Collection<? extends com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection> getConnections()
- Specified by:
getConnections
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
getSelectedFigures
public Collection<? extends org.eclipse.draw2d.IFigure> getSelectedFigures()
- Specified by:
getSelectedFigures
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
getSelectedConnections
public Collection<? extends org.eclipse.draw2d.Connection> getSelectedConnections()
- Specified by:
getSelectedConnections
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
removeFigure
public void removeFigure(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure figure)
- Specified by:
removeFigure
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
removeFigures
public void removeFigures(Collection<com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramFigure> figures)
- Specified by:
removeFigures
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
removeConnection
public void removeConnection(com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection connections)
- Specified by:
removeConnection
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
removeConnections
public void removeConnections(Collection<com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection> connections)
- Specified by:
removeConnections
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
contains
public boolean contains(org.eclipse.draw2d.IFigure figure)
- Specified by:
contains
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
containsSelection
public boolean containsSelection(org.eclipse.draw2d.IFigure figure)
- Specified by:
containsSelection
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
selectFigure
public void selectFigure(org.eclipse.draw2d.IFigure figure)
- Specified by:
selectFigure
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
deselectFigure
public void deselectFigure(org.eclipse.draw2d.IFigure figure)
- Specified by:
deselectFigure
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
clearSelection
public void clearSelection()
- Specified by:
clearSelection
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagram
-
-