import org.simantics.layer0.Layer0;\r
import org.simantics.utils.datastructures.Pair;\r
\r
+/**\r
+ * @deprecated in favor of {@link ModelTransferableGraphSourceRequest}\r
+ */\r
+@Deprecated\r
public class TransferableGraphRequest2 implements Read<TransferableGraph1> {\r
\r
public static String LOG_FILE = "transferableGraph.log";\r
\r
DIA.Scenegraph.Composite <T DIA.Scenegraph.Node\r
>-- DIA.Scenegraph.Composite.transform --> G2D.Transform <R SG.Node.HasProperty : SEL.GenericParameterType\r
+ ==> "Vector Double"\r
\r
DIA.Scenegraph.Component <T DIA.Scenegraph.Node\r
\r
>-- DIA.Scenegraph.AbstractText.color --> DATATYPES.RGB.Integer <R SG.Node.HasProperty : SEL.ColorParameterType\r
>-- DIA.Scenegraph.AbstractText.font --> DATATYPES.Font <R SG.Node.HasProperty : SEL.FontParameterType\r
>-- DIA.Scenegraph.AbstractText.transform --> G2D.Transform <R SG.Node.HasProperty : SEL.GenericParameterType\r
- ==> "DoubleArray"\r
+ ==> "Vector Double"\r
>-- DIA.Scenegraph.AbstractText.borderWidth --> L0.Value <R SG.Node.HasProperty : SEL.GenericParameterType\r
==> "Float"\r
>-- DIA.Scenegraph.AbstractText.borderColor --> DATATYPES.RGB.Integer <R SG.Node.HasProperty : SEL.ColorParameterType\r
>-- DIA.Scenegraph.SVGImage.document --> L0.Value <R SG.Node.HasProperty : SEL.GenericParameterType\r
==> "String"\r
>-- DIA.Scenegraph.SVGImage.transform --> G2D.Transform <R SG.Node.HasProperty : SEL.GenericParameterType\r
+ ==> "Vector Double"\r
@L0.assert DIA.Scenegraph.SVGImage.transform\r
[1,0,0,1,0,0] : G2D.Transform\r
\ No newline at end of file
@JavaName getPropertyValueCached\r
propertyValueCached_ :: Variable -> String -> Binding a -> <ReadGraph> a\r
\r
+ stateVariable :: Variable -> <ReadGraph> Variable\r
+ \r
propertyValueCached :: Serializable a => Typeable a => Variable -> String -> <ReadGraph> a\r
propertyValueCached var prop = propertyValueCached_ var prop binding\r
\r
return Variables.getVariable(graph, uri);\r
}\r
\r
+ public static Variable stateVariable(ReadGraph graph, Variable self) throws DatabaseException {\r
+ Variable session = graph.syncRequest(new ProxySessionRequest(self));\r
+ if (session == null)\r
+ throw new DatabaseException("No state for " + self.getURI(graph));\r
+ return session.getPossibleChild(graph, "__scl__");\r
+ }\r
+ \r
@SCLValue(type = "ReadGraph -> Resource -> Variable -> Variable")\r
public static Variable state(ReadGraph graph, Resource converter, Variable context) throws DatabaseException {\r
Variable session = graph.syncRequest(new ProxySessionRequest(context));\r
font-family: "Times New Roman";\r
font-size: 1.5em;\r
color: black;\r
- margin-left: 10px;\r
+ margin-left: 0px;\r
margin-bottom: 10px;\r
margin-right: 0px;\r
margin-top: 0px;\r
font-size: 1.0em;\r
color: black;\r
margin-top: 10px;\r
- margin-bottom: 10px;\r
+ margin-bottom: 15px;\r
}\r
\r
/* Level 1 header */\r
font-family: "Times New Roman";\r
font-size: 1.6em;\r
color: black;\r
- margin-top: 16px;\r
- margin-bottom: 2px;\r
+ margin-top: 16px;\r
+ margin-bottom: 2px;\r
}\r
\r
/* Level 2 header */\r
h2 {\r
font-family: "Times New Roman";\r
- font-size: 1.4em;\r
+ font-size: 1.4em;\r
color: black;\r
- margin-top: 14px;\r
- margin-bottom: 2px;\r
+ margin-top: 14px;\r
+ margin-bottom: 2px;\r
}\r
\r
/* Level 3 header */\r
font-family: "Times New Roman";\r
font-size: 1.2em;\r
color: black;\r
- margin-top: 12px;\r
- margin-bottom: 2px;\r
+ margin-top: 12px;\r
+ margin-bottom: 2px;\r
}\r
\r
/* Level 4 header */\r
font-family: "Times New Roman";\r
font-size: 1.0em;\r
color: black;\r
- margin-top: 10px;\r
- margin-bottom: 2px;\r
+ margin-top: 10px;\r
+ margin-bottom: 2px;\r
}\r
\r
/* Numbered list items */\r
margin-bottom: 1px;\r
}\r
\r
+/* Links */\r
+a {\r
+ font-family: "Times New Roman";\r
+ font-size: 1.0em;\r
+ margin-left: 2px;\r
+ margin-top: 1px;\r
+ margin-bottom: 1px;\r
+}\r
+\r
/* Table items */\r
td div {\r
font-family: "Times New Roman";\r
- font-size: 1.0em;\r
+ font-size: 0.6em;\r
+ line-height: 1.2;\r
+ padding: 2px;\r
}\r
\r
/* Tables items */\r
table {\r
+ table-layout: auto;\r
+ width: auto;\r
+\r
margin-top: 10px;\r
margin-bottom: 10px;\r
+ margin-left: 15px;\r
+ margin-right: 30px;\r
+\r
+ border-collapse: collapse;\r
+ border: 0px solid black;\r
+\r
+ -webkit-user-select: text;\r
+ -moz-user-select: text;\r
+ -ms-user-select: text;\r
+ user-select: text;\r
}\r
\r
-/* Links */\r
-a {\r
- font-family: "Times New Roman";\r
- font-size: 1.0em;\r
- margin-left: 2px;\r
- margin-top: 1px;\r
- margin-bottom: 1px;\r
+table div {\r
+ white-space: normal;\r
+}\r
+\r
+th, td {\r
+ text-align: left;\r
+ border: 1px solid black;\r
+ padding: 2px;\r
+}\r
+\r
+td div, th div {\r
+ border: none;\r
}\r
}\r
\r
table {\r
- \r
border-collapse: collapse;\r
- width: 100%;\r
table-layout: fixed;\r
+ box-sizing: border-box;\r
+ width: 100%;\r
+\r
-webkit-user-select: text;\r
-moz-user-select: text;\r
-ms-user-select: text;\r
user-select: text;\r
+\r
border: 0px;\r
padding: 0px;\r
- box-sizing: border-box;\r
-\r
}\r
\r
td {\r
}\r
\r
table div {\r
+ height: auto;\r
+ width: auto;\r
\r
padding-left: 1px;\r
\r
border-right: 1px;\r
border-left: 1px;\r
-\r
border-top: 1px;\r
border-bottom: 1px;\r
+ \r
margin-bottom: -1px;\r
margin-left: -1px;\r
\r
border-style: solid;\r
- text-overflow: ellipsis;\r
overflow: hidden;\r
+ text-overflow: ellipsis;\r
white-space: nowrap;\r
- height: auto;\r
- width: auto;\r
page-break-inside: avoid;\r
- box-sizing: border-box;\r
- \r
+ box-sizing: border-box;\r
}\r
this.settings = settings;\r
\r
MarkupParser markupParser = new MarkupParser();\r
- MediaWikiLanguage language = new MediaWikiLanguage();\r
- markupParser.setMarkupLanguage(language);\r
+ markupParser.setMarkupLanguage(new MediaWikiLanguage());\r
String html = markupParser.parseToHtml(wiki);\r
\r
String width = "width:" + (210-settings.marginLeft-settings.marginRight) + "mm;";\r
html = html.replace("<th>", "<th><div>");\r
html = html.replace("</td>", "</div></td>");\r
html = html.replace("</th>", "</div></th>");\r
- html = html.replace("</head>", "<style type=\"text/css\">" + DEFAULT_CSS + css + "</style></head>");\r
+ html = html.replace("</head>", "<style type=\"text/css\">\n" + DEFAULT_CSS + css + "\n</style>\n</head>\n");\r
\r
this.html = html;\r
\r
// FIXME: use proper datatypes\r
G2D.Transform <T L0.Literal\r
@L0.assert L0.HasDataType $(Double[6])\r
+ @L0.assert L0.HasValueType "Vector Double"\r
L0.HasDescription "A 2x3 matrix of six doubles representing an affine 2D transformation in column-major order."\r
\r
G2D.Transform."i-0" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
// MOD.DiagramConnectionRelationToConnectionRelationC\r
// MOD.DiagramConnectionRelationToComponentType\r
MOD.ConnectionRelationToConnectionMappingSpecification <R L0.IsRelatedTo\r
- L0.HasDomain DIA.Connector\r
+ L0.HasDomain STR.ConnectionRelation\r
L0.HasRange MOD.ConnectionMappingSpecification\r
MOD.NeedsConnectionMappingSpecification <R L0.IsRelatedTo : L0.Tag : L0.FunctionalRelation\r
L0.HasDescription "Tells a connection relation that a diagram connection using it will require a DIA.Connector that has MOD.HasConnectionMappingSpecification statement attached to it if the used connection type has a MOD.ConnectionTypeToConnectionMappingSpecification specified. It guides connection creation."\r