public abstract class AnsiColorSource<T extends AnsiColorProvider> extends Object implements ControlCodeSource<T>
| Modifier | Constructor and Description |
|---|---|
|
AnsiColorSource() |
protected |
AnsiColorSource(boolean foreground) |
| Modifier and Type | Method and Description |
|---|---|
String |
getControlCode(T attributeSource)
Translates the attribute source into a control code that can be passed to
an input/output stream
|
String |
getFullResetControlCode()
Gets a reset code that can be used to reset any changes previously made
by any attributes of the type supported by this source
|
String |
getResetControlCode(T attributeSource)
Gets a reset code that can be used to reset any changes previously made
by the given attribute
|
public AnsiColorSource()
protected AnsiColorSource(boolean foreground)
public String getControlCode(T attributeSource)
ControlCodeSourcegetControlCode in interface ControlCodeSource<T extends AnsiColorProvider>attributeSource - Attribute sourcepublic String getResetControlCode(T attributeSource)
ControlCodeSourcegetResetControlCode in interface ControlCodeSource<T extends AnsiColorProvider>attributeSource - Attribute sourcepublic String getFullResetControlCode()
ControlCodeSourcegetFullResetControlCode in interface ControlCodeSource<T extends AnsiColorProvider>Copyright © 2012–2022. All rights reserved.