Module com.github.rvesse.airline.io
Class AnsiDecorationSource<T extends AnsiDecorationProvider>
java.lang.Object
com.github.rvesse.airline.io.decorations.sources.AnsiDecorationSource<T>
- All Implemented Interfaces:
ControlCodeSource<T>
public class AnsiDecorationSource<T extends AnsiDecorationProvider>
extends Object
implements ControlCodeSource<T>
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
AnsiDecorationSource
public AnsiDecorationSource()
-
-
Method Details
-
getControlCode
Description copied from interface:ControlCodeSource
Translates the attribute source into a control code that can be passed to an input/output stream- Specified by:
getControlCode
in interfaceControlCodeSource<T extends AnsiDecorationProvider>
- Parameters:
attributeSource
- Attribute source- Returns:
- Control code
-
getResetControlCode
Description copied from interface:ControlCodeSource
Gets a reset code that can be used to reset any changes previously made by the given attribute- Specified by:
getResetControlCode
in interfaceControlCodeSource<T extends AnsiDecorationProvider>
- Parameters:
attributeSource
- Attribute source- Returns:
- Control code
-
getFullResetControlCode
Description copied from interface:ControlCodeSource
Gets a reset code that can be used to reset any changes previously made by any attributes of the type supported by this source- Specified by:
getFullResetControlCode
in interfaceControlCodeSource<T extends AnsiDecorationProvider>
- Returns:
- Control Code
-