Module com.github.rvesse.airline.io
Package com.github.rvesse.airline.io
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getControlCode(T attributeSource)
Translates the attribute source into a control code that can be passed to an input/output streamjava.lang.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 sourcejava.lang.String
getResetControlCode(T attributeSource)
Gets a reset code that can be used to reset any changes previously made by the given attribute
-
-
-
Method Detail
-
getControlCode
java.lang.String getControlCode(T attributeSource)
Translates the attribute source into a control code that can be passed to an input/output stream- Parameters:
attributeSource
- Attribute source- Returns:
- Control code
-
getResetControlCode
java.lang.String getResetControlCode(T attributeSource)
Gets a reset code that can be used to reset any changes previously made by the given attribute- Parameters:
attributeSource
- Attribute source- Returns:
- Control code
-
getFullResetControlCode
java.lang.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
-
-