|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.generic.commonapi.GML.GMLFactoryImpl
Factory for the GML implementation classes.
Field Summary | |
static java.lang.String |
DEFAULT_GML_CONSTRAINT_CLASS
Default GMLConstraint implementation to use |
static java.lang.String |
DEFAULT_GML_EDGE_CLASS
Edge class implementation |
static java.lang.String |
DEFAULT_GML_GENERATOR_CLASS
Default GMLConstraint implementation to use |
Constructor Summary | |
GMLFactoryImpl(java.lang.String propertiesFile)
Loads all specified classes in the propertiesFile, related to the GML items. |
Method Summary | |
GMLConstraint |
buildDefaultGMLConstraint()
Build the GMLConstraint specified in the GML properties file. |
GMLEdge |
buildEdge(Id source,
Id target,
boolean directed)
Build a GML edge with the specified values. |
GMLEdge |
buildEdge(Id source,
Id target,
boolean directed,
java.lang.String fill)
Build a GML edge with the specified values. |
GMLGenerator |
buildGMLGenerator()
Builds the GMLGenerator specified in the GML properties file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_GML_EDGE_CLASS
public static final java.lang.String DEFAULT_GML_CONSTRAINT_CLASS
public static final java.lang.String DEFAULT_GML_GENERATOR_CLASS
Constructor Detail |
public GMLFactoryImpl(java.lang.String propertiesFile) throws InitializationException
propertiesFile
- Path to the GML properties file.Method Detail |
public GMLEdge buildEdge(Id source, Id target, boolean directed) throws InitializationException
buildEdge
in interface GMLFactory
source
- Source node Id.target
- Destination node Id.directed
- true when the edge is directed. false in other case.
InitializationException
- if an error occurs during the initialization.GMLDefaultProperties
public GMLEdge buildEdge(Id source, Id target, boolean directed, java.lang.String fill) throws InitializationException
buildEdge
in interface GMLFactory
source
- Source node Id.target
- Destination node Id.directed
- true when the edge is directed. false in other case.fill
- Fill color in "#RRGGBB" format.
InitializationException
- if an error occurs during the initialization.public GMLGenerator buildGMLGenerator() throws InitializationException
buildGMLGenerator
in interface GMLFactory
InitializationException
- if an error occurs during the initialization.public GMLConstraint buildDefaultGMLConstraint() throws InitializationException
buildDefaultGMLConstraint
in interface GMLFactory
InitializationException
- if an error occurs during the initialization.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |