$search
00001 /******************************************************************************* 00002 * Copyright (c) 2012 Stefan Profanter. All rights reserved. This program and the accompanying 00003 * materials are made available under the terms of the GNU Public License v3.0 which accompanies 00004 * this distribution, and is available at http://www.gnu.org/licenses/gpl.html 00005 * 00006 * Contributors: Stefan Profanter - initial API and implementation, Year: 2012 00007 ******************************************************************************/ 00008 package edu.tum.cs.vis.model.util; 00009 00010 import java.awt.Color; 00011 00012 import processing.core.PGraphics; 00013 00020 public class Line extends DrawObject { 00021 00025 private static final long serialVersionUID = 6189622478733284349L; 00026 00030 public Line() { 00031 super(2); 00032 } 00033 00043 public void draw(PGraphics g, Color overrideColor) { 00044 applyColor(g, overrideColor); 00045 g.line(position[0].x, position[0].y, position[0].z, position[1].x, position[1].y, 00046 position[1].z); 00047 } 00048 }