Class Layer1ApiUserMessageModifyScreenSpacePainter
java.lang.Object
velox.api.layer1.messages.indicators.Layer1ApiUserMessageModifyScreenSpacePainter
- All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
public class Layer1ApiUserMessageModifyScreenSpacePainter
extends Object
implements Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
Describes adding or removing a screen-space painter
Note that you need to remember
fullName. This is a name that will be used to adress
your indicator by any external parts. This name will be unique trough all indicators
unless you initialize indicators with same owner class and same user name.
This field will be initialized in message constructor and can be accessed after-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to buildLayer1ApiUserMessageModifyScreenSpacePainter. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AliasFilterThis is a unique indicator name, that will be used to address this indicator from any external part
Do not change this field
UseapplyNameModifier(String)if you need to generate different full names for same user namesfinal booleanfinal StringName of owner strategy classfinal StringUser friendly name of owner strategy class (if provided viaLayer1StrategyName)final StringName that will be visible to user i.e. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyNameModifier(String modifier) Use if you need to distinguish painters with same user names For example, could be when creating painters with same names for different aliases Modifier should be applied before sending this messageCreates builder to buildLayer1ApiUserMessageModifyScreenSpacePainter.static StringpredictFullName(Class<?> myClass, String myName) There is no guarantee that value returned from this method will be the same as indicator's full name
Do not use this method to predict strategy nametoString()
-
Field Details
-
ownerClassName
Name of owner strategy class -
ownerUserName
User friendly name of owner strategy class (if provided viaLayer1StrategyName) -
fullName
This is a unique indicator name, that will be used to address this indicator from any external part
Do not change this field
UseapplyNameModifier(String)if you need to generate different full names for same user names -
userName
Name that will be visible to user i.e. in bottom panel context menu -
isAdd
public final boolean isAdd -
screenSpacePainterFactory
-
aliasFilter
-
-
Method Details
-
applyNameModifier
Use if you need to distinguish painters with same user names For example, could be when creating painters with same names for different aliases Modifier should be applied before sending this message -
predictFullName
There is no guarantee that value returned from this method will be the same as indicator's full name
Do not use this method to predict strategy name -
toString
-
builder
public static Layer1ApiUserMessageModifyScreenSpacePainter.Builder builder(Class<?> strategyClass, String userName) Creates builder to buildLayer1ApiUserMessageModifyScreenSpacePainter.- Returns:
- created builder
-