1 /*
2  * Copyright (c) 2019 Helmut Neemann.
3  * Use of this source code is governed by the GPL v3 license
4  * that can be found in the LICENSE file.
5  */
6 package de.neemann.digital.draw.graphics;
7 
8 import java.awt.*;
9 
10 /**
11  * Creates a high contrast style best for printing
12  */
13 public class ColorStyleHighContrast implements GraphicSVG.ColorStyle {
14     @Override
getColor(Style style)15     public Color getColor(Style style) {
16         if (style == Style.WIRE) return Style.NORMAL.getColor();
17         else if (style == Style.WIRE_OUT) return Style.NORMAL.getColor();
18         else if (style == Style.WIRE_BITS) return Style.NORMAL.getColor();
19         else if (style == Style.SHAPE_PIN) return Style.NORMAL.getColor();
20         else if (style == Style.SHAPE_SPLITTER) return Style.NORMAL.getColor();
21         else return style.getColor();
22     }
23 }
24