\r
}\r
\r
- private static EdgeEnd toEdgeEnd(ReadGraph graph, Resource attachmentRelation, EdgeEnd defaultValue, DiagramResource DIA)\r
+ public static EdgeEnd toEdgeEnd(ReadGraph graph, Resource attachmentRelation, EdgeEnd defaultValue, DiagramResource DIA)\r
throws DatabaseException {\r
if (graph.isSubrelationOf(attachmentRelation, DIA.HasTailConnector))\r
return EdgeEnd.Begin;\r
return defaultValue;\r
}\r
\r
- private static Resource resolveFlagAttachment(ReadGraph graph, Resource connection, Resource flag, IModelingRules modelingRules, DiagramResource DIA) throws DatabaseException {\r
+ public static Resource resolveFlagAttachment(ReadGraph graph, Resource connection, Resource flag, IModelingRules modelingRules, DiagramResource DIA) throws DatabaseException {\r
Type type = resolveFlagType(graph, connection, flag, modelingRules, DIA);\r
if (type != null) {\r
switch (type) {\r
return type;\r
}\r
\r
- private static Statement findTerminalStatement(ReadGraph graph, Resource connection, Resource connector, StructuralResource2 STR)\r
+ public static Statement findTerminalStatement(ReadGraph graph, Resource connection, Resource connector, StructuralResource2 STR)\r
throws DatabaseException {\r
for (Statement stm : graph.getStatements(connector, STR.Connects)) {\r
if (connection.equals(stm.getObject()))\r
return null;\r
}\r
\r
- private static Resource getInverseAttachment(ReadGraph graph, Resource attachmentRelation, DiagramResource DIA)\r
+ public static Resource getInverseAttachment(ReadGraph graph, Resource attachmentRelation, DiagramResource DIA)\r
throws DatabaseException {\r
Resource inverse = graph.getPossibleObject(attachmentRelation, DIA.HasInverseAttachment);\r
if (inverse != null)\r
* @return\r
* @throws DatabaseException\r
*/\r
- protected static StyledRouteGraphRenderer getRenderer(ReadGraph graph, ConnectionStyle style)\r
+ public static StyledRouteGraphRenderer getRenderer(ReadGraph graph, ConnectionStyle style)\r
throws DatabaseException {\r
return graph.syncRequest(new Renderer(style),\r
TransientCacheListener.<StyledRouteGraphRenderer>instance());\r
private static final double DEG_45 = Math.PI/4.;\r
private static final double DEG_135 = Math.PI*3./4.;\r
\r
- static class BackendConnection {\r
+ public static class BackendConnection {\r
public final Resource node;\r
public final Resource terminal;\r
public final EdgeEnd end;\r