underline((Boolean)attributes.get("underline")). blink((Boolean)attributes.get("blink")); if (attributes.containsKey("fg")) {
underline((Boolean)attributes.get("underline")). blink((Boolean)attributes.get("blink")); if (attributes.containsKey("fg")) {
underline((Boolean)attributes.get("underline")). blink((Boolean)attributes.get("blink")); if (attributes.containsKey("fg")) {
public Composite decoration(Decoration decoration) { if (decoration != null) { switch (decoration) { case bold: return bold(true); case bold_off: return bold(false); case underline: return underline(true); case underline_off: return underline(false); case blink: return blink(true); case blink_off: return blink(false); } } return this; }
public Composite decoration(Decoration decoration) { if (decoration != null) { switch (decoration) { case bold: return bold(true); case bold_off: return bold(false); case underline: return underline(true); case underline_off: return underline(false); case blink: return blink(true); case blink_off: return blink(false); } } return this; }
public Composite decoration(Decoration decoration) { if (decoration != null) { switch (decoration) { case bold: return bold(true); case bold_off: return bold(false); case underline: return underline(true); case underline_off: return underline(false); case blink: return blink(true); case blink_off: return blink(false); } } return this; }
public Composite underline() { return underline(true); }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public Composite underline() { return underline(true); }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public Composite underline() { return underline(true); }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public Composite decoration(Decoration decoration) { if (decoration != null) { switch (decoration) { case bold: return bold(true); case bold_off: return bold(false); case underline: return underline(true); case underline_off: return underline(false); case blink: return blink(true); case blink_off: return blink(false); } } return this; }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public Composite underline() { return underline(true); }
public Style.Composite underline(Boolean value) { return Style.style(this).underline(value); }
public void testFluent() throws Exception { Style.Composite style = Color.red.bg().bold().underline().fg(Color.blue); assertEquals("\u001B[1;4;34;41m", style.toAnsiSequence()); style = style.bold(false); assertEquals("\u001B[22;4;34;41m", style.toAnsiSequence()); style = style.bold(null); assertEquals("\u001B[4;34;41m", style.toAnsiSequence()); } }