1 /*******************************************************************************
\r
2 * Copyright (c) 2011 Association for Decentralized Information Management in
\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
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.diagram.connection.rendering;
\r
14 import java.awt.Graphics2D;
\r
15 import java.awt.geom.Path2D;
\r
17 public interface ConnectionStyle {
\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