public class BasicViewElementFactory
extends java.lang.Object
| Constructor and Description |
|---|
BasicViewElementFactory(FigureCanvas canvas,
ResourceManager manager,
SymbolLoader symbolLoader) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.draw2d.geometry.Rectangle |
create(Position position,
Dimension dimension) |
Controller |
create(SymbolController controller,
Primitive element) |
void |
createConnections(Layer layer,
SymbolController controller,
|
BasicViewElementFactory |
createSubFactory(SymbolLoader symbolLoader)
Create a new factory with the resource root based on the provided symbol
loader
|
SymbolLoader |
getRoot() |
protected XMISymbolLoader |
load(java.lang.String stringUri)
Loads a new symbol based on the current symbol/resource context
|
public BasicViewElementFactory(FigureCanvas canvas,
ResourceManager manager,
SymbolLoader symbolLoader)
public Controller create(SymbolController controller, Primitive element) throws java.lang.Exception
java.lang.Exceptionprotected XMISymbolLoader load(java.lang.String stringUri) throws java.lang.Exception
Note that the implementation caches by URI
uri - the URI from where to load the symboljava.lang.Exception - if anything goes wrongpublic SymbolLoader getRoot()
public BasicViewElementFactory createSubFactory(SymbolLoader symbolLoader)
Since the factory holds a reference to the symbol loader, which is the context for resolving resource URIs, a new factory must be created for every child symbol.
symbolLoader - symbol loader, resource context for the new factorypublic void createConnections(Layer layer,
SymbolController controller,
connections)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0