]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/rendering/ConnectionStyle.java
86704028398903e9f7165eb3fcb6115d3e755ad8
[simantics/platform.git] / bundles / org.simantics.diagram.connection / src / org / simantics / diagram / connection / rendering / ConnectionStyle.java
1 /*******************************************************************************\r
2  * Copyright (c) 2011 Association for Decentralized Information Management in\r
3  * Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.diagram.connection.rendering;\r
13 \r
14 import java.awt.Graphics2D;\r
15 import java.awt.geom.Path2D;\r
16 \r
17 public interface ConnectionStyle {\r
18 \r
19         void drawBranchPoint(Graphics2D g, double x, double y);\r
20         void drawLine(Graphics2D g, double x1, double y1, double x2, double y2, boolean isTransient);\r
21         void drawPath(Graphics2D g, Path2D path, boolean isTransient);\r
22         void drawDegeneratedLine(Graphics2D g, double x, double y, boolean isHorizontal, boolean isTransient);\r
23         double getDegeneratedLineLength();      \r
24         \r
25 }\r