1 /*******************************************************************************
2 * Copyright (c) 2011 Association for Decentralized Information Management in
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.diagram.connection.rendering;
14 import java.awt.Graphics2D;
15 import java.awt.geom.Path2D;
17 public interface ConnectionStyle {
19 void drawBranchPoint(Graphics2D g, double x, double y);
20 void drawLine(Graphics2D g, double x1, double y1, double x2, double y2, boolean isTransient);
21 void drawPath(Graphics2D g, Path2D path, boolean isTransient);
22 void drawDegeneratedLine(Graphics2D g, double x, double y, boolean isHorizontal, boolean isTransient);
23 double getDegeneratedLineLength();