EOS 2  1.1.0
Einfache Objektbasierte Sprache
LineDescriptor.java
gehe zur Dokumentation dieser Datei
1 package de.lathanda.eos.base;
2 
3 
9 public class LineDescriptor {
11  private MutableColor color;
12  private LineStyle type;
13  private double thickness;
14  public LineDescriptor() {
15  this(MutableColor.BLACK, LineStyle.SOLID, 0.25f);
16  }
17  public LineDescriptor(MutableColor color, LineStyle type, double thickness) {
18  this.color = color;
19  this.type = type;
20  this.thickness = thickness;
21  }
23  this.color = org.color;
24  this.type = org.type;
25  this.thickness = org.thickness;
26  }
28  return color;
29  }
30  public void setColor(MutableColor c) {
31  this.color = c;
32  }
34  return type;
35  }
36  public void setLineStyle(LineStyle lt) {
37  type = lt;
38  }
39  public double getDrawWidth() {
40  return thickness;
41  }
42  public void setDrawWidth(double width) {
43  this.thickness = width;
44  }
45  public void scale(double factor) {
46  thickness *= factor;
47  }
48  public LineDescriptor copy() {
49  return new LineDescriptor(this);
50  }
51 }
static final LineDescriptor NONE
LineDescriptor(MutableColor color, LineStyle type, double thickness)
static final MutableColor BLACK
Impressum