27 lines
1.4 KiB
TeX
27 lines
1.4 KiB
TeX
\begin{tikzpicture}
|
|
\node[umlDetail,text width=16cm] {
|
|
\textbf{tkrEditService}\quad\textit{final; GUI-independent support service}
|
|
\nodepart{second}
|
|
\textbf{Responsibilities}\\
|
|
Delegate rectangle geometry to its provider; constrain built-in segments.\\
|
|
Validate provider identity, operation invariants and host constraints.\\
|
|
Prepare only changed-coordinate replacements with exact decimal addition.\\
|
|
Share the parser's stroke envelope; never mutate source, history or widgets.
|
|
\nodepart{third}
|
|
\textbf{State and dependencies}\\
|
|
Stateless; owned by value in \texttt{tkrEditorController}.\\
|
|
Borrowed inputs: element, gesture, mapper, extent and source bytes.\\
|
|
\texttt{ShapeGeometryLimits}: $0.01$ cm minimum; six-decimal offsets.\\
|
|
\texttt{GestureGeometry}: operation result and two TikZ positions.
|
|
\nodepart{fourth}\ttfamily
|
|
\normalfont\textbf{Public operations}\ttfamily\\
|
|
+ prepareGeometry(element: const ElementRecord\&, drag: const DragUpdate\&,\\
|
|
\hspace*{1em}mapper: const tkrCoordinateMapper\&, extent: const ComparisonExtent\&,\\
|
|
\hspace*{1em}pShapeProvider: const tkrShapeProvider* = nullptr)\\
|
|
\hspace*{1em}const: GestureGeometry\\
|
|
+ prepareEdits(element: const ElementRecord\&, baSource: const QByteArray\&,\\
|
|
\hspace*{1em}geometry: const GestureGeometry\&, vecEdits: QVector<CoordinateEdit>\&)\\
|
|
\hspace*{1em}const: OperationResult
|
|
};
|
|
\end{tikzpicture}
|