java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.object.impl.GraphObjectImpl
de.grogra.graph.object.sg.impl.SubGraphImpl
- All Implemented Interfaces:
GraphObject
,SubGraph
,Manageable
,Shareable
,RegistryContext
,Showable
,Serializable
- See Also:
-
Field Summary
Fields inherited from class de.grogra.graph.object.impl.GraphObjectImpl
registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Apply a RGG function on the subgraphvoid
Apply an XL Query on the SubGraphvoid
clear()
removes all Nodes except the rootcreate a new producer to initialize the Graphvoid
function triggered by the saving of the projectboolean
void
set the project graph to be teh current onevoid
reload()
If the subgraph uses some modules defined in the project, reload forces the modules in the subgraph to be relinked after compilationstatic void
void
setAutoRecreate
(boolean b) defines if the subgraph is automatically recreated if the model is savedvoid
set this graph to be the currently used onevoid
creates a Node holding a instanciation of teh SubGraphtoMesh()
creates a rendered Mesh of the subGraphvoid
write()
Override the file subgraph in the project with its current version.Methods inherited from class de.grogra.graph.object.impl.GraphObjectImpl
cloneGraph, describes, getGraph, getManageableType, getNode, getRegistry, getRootNode, setRootNode
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.graph.object.GraphObject
cloneGraph, describes, getGraph, getNode, getRootNode, setRootNode
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Field Details
-
MIME_TYPE
-
-
Constructor Details
-
SubGraphImpl
-
SubGraphImpl
-
-
Method Details
-
isAutoRecreate
public boolean isAutoRecreate() -
show
- Specified by:
show
in interfaceShowable
- Overrides:
show
in classGraphObjectImpl
-
reload
public void reload()Description copied from interface:GraphObject
If the subgraph uses some modules defined in the project, reload forces the modules in the subgraph to be relinked after compilation- Specified by:
reload
in interfaceGraphObject
- Overrides:
reload
in classGraphObjectImpl
-
clear
public void clear()Description copied from interface:SubGraph
removes all Nodes except the root -
write
public void write()Description copied from interface:GraphObject
Override the file subgraph in the project with its current version. Required on subgraph created in RGG to be saved- Specified by:
write
in interfaceGraphObject
- Overrides:
write
in classGraphObjectImpl
-
apply
Description copied from interface:SubGraph
Apply a RGG function on the subgraph -
applyXL
Description copied from interface:SubGraph
Apply an XL Query on the SubGraph -
toMesh
Description copied from interface:SubGraph
creates a rendered Mesh of the subGraph -
toInstance
Description copied from interface:SubGraph
creates a Node holding a instanciation of teh SubGraph- Specified by:
toInstance
in interfaceSubGraph
- Returns:
- the Node
-
handleSaveEvent
public void handleSaveEvent()Description copied from interface:SubGraph
function triggered by the saving of the project- Specified by:
handleSaveEvent
in interfaceSubGraph
-
setAutoRecreate
public void setAutoRecreate(boolean b) Description copied from interface:SubGraph
defines if the subgraph is automatically recreated if the model is saved- Specified by:
setAutoRecreate
in interfaceSubGraph
- Parameters:
b
- sets if recreated or not
-
getInitalProducer
Description copied from interface:SubGraph
create a new producer to initialize the Graph- Specified by:
getInitalProducer
in interfaceSubGraph
- Returns:
-
setCurrent
public void setCurrent()Description copied from interface:SubGraph
set this graph to be the currently used one- Specified by:
setCurrent
in interfaceSubGraph
-
releaseCurrent
public void releaseCurrent()Description copied from interface:SubGraph
set the project graph to be teh current one- Specified by:
releaseCurrent
in interfaceSubGraph
-
save
-