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
  • Field Details

    • ownerClassName

      public final String ownerClassName
      Name of owner strategy class
    • ownerUserName

      public final String ownerUserName
      User friendly name of owner strategy class (if provided via Layer1StrategyName)
    • fullName

      public String fullName
      This is a unique indicator name, that will be used to address this indicator from any external part
      Do not change this field
      Use applyNameModifier(String) if you need to generate different full names for same user names
    • userName

      public final String userName
      Name that will be visible to user i.e. in bottom panel context menu
    • isAdd

      public final boolean isAdd
    • screenSpacePainterFactory

      public final ScreenSpacePainterFactory screenSpacePainterFactory
    • aliasFilter

      public final AliasFilter aliasFilter
  • Method Details

    • applyNameModifier

      public void applyNameModifier(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 message
    • predictFullName

      public static String predictFullName(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 name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Layer1ApiUserMessageModifyScreenSpacePainter.Builder builder(Class<?> strategyClass, String userName)
      Returns:
      created builder