refs #3832
Change-Id: I44e4a4ca72aea8c7514faa24533602dfeb4b565c
* \r
* @see ElementHints#KEY_CONNECTION_ENTITY\r
*/\r
* \r
* @see ElementHints#KEY_CONNECTION_ENTITY\r
*/\r
- private static class CE implements ConnectionEntity {\r
+ public static class CE implements ConnectionEntity {\r
\r
/**\r
* Needed to gain access to {@link DataElementMap}.\r
\r
/**\r
* Needed to gain access to {@link DataElementMap}.\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
throws DatabaseException {\r
if (graph.isSubrelationOf(attachmentRelation, DIA.HasTailConnector))\r
return EdgeEnd.Begin;\r
return defaultValue;\r
}\r
\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
Type type = resolveFlagType(graph, connection, flag, modelingRules, DIA);\r
if (type != null) {\r
switch (type) {\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
throws DatabaseException {\r
for (Statement stm : graph.getStatements(connector, STR.Connects)) {\r
if (connection.equals(stm.getObject()))\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
throws DatabaseException {\r
Resource inverse = graph.getPossibleObject(attachmentRelation, DIA.HasInverseAttachment);\r
if (inverse != null)\r
* @return\r
* @throws DatabaseException\r
*/\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
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
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
public final Resource node;\r
public final Resource terminal;\r
public final EdgeEnd end;\r