LineStyle implements ReadonlyLineStyle { @Override public String toString() { StringBuilder b = new StringBuilder("("); b.append(getMainColor()).append(',').append(getMainWidth()); if (hasSecondaryColor()) { b.append('|').append(getSecondaryColor()).append(',').append(getSecondaryWidth()); } return b.append(')').toString(); } LineStyle(Color color, float width, boolean hasSecondaryColor);  LineStyle(Color mainColor, float mainWidth, Color secondaryColor, float secondaryWidth);  LineStyle(ReadonlyLineStyle other); @Override LineStyle copy(); @Override ReadonlyColor getMainReadonlyColor(); @Override ReadonlyColor getSecondaryReadonlyColor(); @Override float getMainWidth(); @Override float getSecondaryWidth(); @Override boolean hasSecondaryColor(); @Override boolean glApply(boolean useSecondary); @Override boolean isAnimating(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); Color getMainColor(); Color getSecondaryColor(); LineStyle set(Color color, float width, boolean hasSecondaryColor); LineStyle set(Color mainColor, float mainWidth, Color secondaryColor, float secondaryWidth); LineStyle setMainColor(Color mainColor); LineStyle setMainWidth(float mainWidth); LineStyle setSecondaryColor(Color secondaryColor); LineStyle setSecondaryColorFromMain(); LineStyle setSecondaryWidth(float secondaryWidth); static final ReadonlyLineStyle DEFAULT; }
@Test public void testDefault() { assertNotNull(LineStyle.DEFAULT); assertEquals("(0xff00ffcc,3.0|0xff00ff33,3.0)", LineStyle.DEFAULT.toString()); }