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 java.lang.Object implements ControlCodeSource<T>
-
-
Constructor Summary
Constructors Constructor Description AnsiDecorationSource()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String getControlCode(T attributeSource)
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
public java.lang.String getResetControlCode(T attributeSource)
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
public java.lang.String 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
-
-