Interface ControlCodeSource<T>
- Type Parameters:
T- Attribute source
- All Known Implementing Classes:
AnsiBackgroundColorSource, AnsiColorSource, AnsiDecorationSource, AnsiForegroundColorSource
public interface ControlCodeSource<T>
Interface for classes that provide control codes
-
Method Summary
Modifier and TypeMethodDescriptiongetControlCode(T attributeSource) Translates the attribute source into a control code that can be passed to an input/output streamGets a reset code that can be used to reset any changes previously made by any attributes of the type supported by this sourcegetResetControlCode(T attributeSource) Gets a reset code that can be used to reset any changes previously made by the given attribute
-
Method Details
-
getControlCode
-
getResetControlCode
-
getFullResetControlCode
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- Returns:
- Control Code
-