2 * TemplateProperties.java
4 package net.sf.openrocket.gui.print;
6 import javax.swing.UIManager;
10 * This class is responsible for managing various properties of print templates (fin, nose cone, transitions, etc.).
12 public class TemplateProperties {
15 * The property that defines the fill color.
17 public static final String TEMPLATE_FILL_COLOR_PROPERTY = "template.fill.color";
20 * The property that defines the line color.
22 public static final String TEMPLATE_LINE_COLOR_PROPERTY = "template.line.color";
25 * Get the current fill color.
27 * @return a color to be used as the fill in template shapes
29 public static Color getFillColor () {
30 Color fillColor = UIManager.getColor(TemplateProperties.TEMPLATE_FILL_COLOR_PROPERTY);
31 if (fillColor == null) {
32 fillColor = Color.lightGray;
38 * Get the current line color.
40 * @return a color to be used as the line in template shapes
42 public static Color getLineColor () {
43 Color lineColor = UIManager.getColor(TemplateProperties.TEMPLATE_LINE_COLOR_PROPERTY);
44 if (lineColor == null) {
45 lineColor = Color.darkGray;