[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/model EdgeAttributes.java, NONE, 1.1
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2007-02-07 10:08:02
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31126/src/net/sourceforge/bprocessor/gl/model Added Files: EdgeAttributes.java Log Message: Small refactorings of edge drawing --- NEW FILE: EdgeAttributes.java --- //--------------------------------------------------------------------------------- // $Id: EdgeAttributes.java,v 1.1 2007/02/07 10:00:03 henryml Exp $ // // Copyright (c) 2005 The BProcessor Team (http://bprocessor.sourceforge.net) // Released under the Lesser GNU Public License v2.1 //--------------------------------------------------------------------------------- package net.sourceforge.bprocessor.gl.model; /** * EdgeAttributes represents the graphical attributes * associated with edges. */ public class EdgeAttributes { private float[] color; private boolean stipple; private float lineWidth; /** * Create default EdgeAttributes: black, nonstippled, and width of 1 */ public EdgeAttributes() { this.color = new float[]{0, 0, 0}; this.stipple = false; this.lineWidth = 1; } /** * * @param color the color represented as array of floats with r g b values */ public void setColor(float[] color) { this.color = color; } /** * * @return color represented as array of floats with r g b values */ public float[] getColor() { return color; } /** * * @param stipple the new value of the stipple attribute */ public void setStipple(boolean stipple) { this.stipple = stipple; } /** * * @return the stiple attribute */ public boolean isStipple() { return stipple; } /** * * @param lineWidth the new value of the lineWidth attribute */ public void setLineWidth(float lineWidth) { this.lineWidth = lineWidth; } /** * * @return the lineWidth attribute */ public float getLineWidth() { return lineWidth; } } |