X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.graphviz%2Fsrc%2Forg%2Fsimantics%2Fgraphviz%2Finternal%2Fxdot%2FFilledShape.java;h=246fdad8bfbe7bfc88036146048869ccd6e4cb17;hb=refs%2Fchanges%2F38%2F238%2F2;hp=27b5100c8ee4fd000ae8792cb5105c86338dcd2e;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graphviz/src/org/simantics/graphviz/internal/xdot/FilledShape.java b/bundles/org.simantics.graphviz/src/org/simantics/graphviz/internal/xdot/FilledShape.java index 27b5100c8..246fdad8b 100644 --- a/bundles/org.simantics.graphviz/src/org/simantics/graphviz/internal/xdot/FilledShape.java +++ b/bundles/org.simantics.graphviz/src/org/simantics/graphviz/internal/xdot/FilledShape.java @@ -1,38 +1,38 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.graphviz.internal.xdot; - -import java.awt.Color; -import java.awt.Graphics2D; -import java.awt.Shape; - -public class FilledShape implements ShapeCommand { - protected Shape shape; - - public FilledShape(Shape shape) { - this.shape = shape; - } - - @Override - public void draw(Graphics2D g) { - Color curColor = g.getColor(); - g.setColor(SetFillColor.getFillColor()); - g.fill(shape); - g.setColor(curColor); - g.draw(shape); - } - - @Override - public Shape getShape() { - return shape; - } -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.graphviz.internal.xdot; + +import java.awt.Color; +import java.awt.Graphics2D; +import java.awt.Shape; + +public class FilledShape implements ShapeCommand { + protected Shape shape; + + public FilledShape(Shape shape) { + this.shape = shape; + } + + @Override + public void draw(Graphics2D g) { + Color curColor = g.getColor(); + g.setColor(SetFillColor.getFillColor()); + g.fill(shape); + g.setColor(curColor); + g.draw(shape); + } + + @Override + public Shape getShape() { + return shape; + } +}