Class AbstractVariableFieldFactory

java.lang.Object
ghidra.app.util.viewer.field.FieldFactory
ghidra.app.util.viewer.field.AbstractVariableFieldFactory
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
VariableCommentFieldFactory, VariableLocFieldFactory, VariableNameFieldFactory, VariableTypeFieldFactory

public abstract class AbstractVariableFieldFactory extends FieldFactory
  • Constructor Details

    • AbstractVariableFieldFactory

      public AbstractVariableFieldFactory(String name)
      Constructs a AbstractVariableFieldFactory with given name. Used only as potential field.
      Parameters:
      name - the name of the field.
    • AbstractVariableFieldFactory

      protected AbstractVariableFieldFactory(String name, FieldFormatModel model, ListingHighlightProvider highlightProvider, Options displayOptions, Options fieldOptions)
      AbstractVariableFieldFactory constructor
      Parameters:
      name - the name of the field
      model - the model that the field belongs to.
      highlightProvider - the HightLightStringProvider.
      displayOptions - the Options for display properties.
      fieldOptions - the Options for field specific properties.
  • Method Details

    • initDisplayOptions

      protected void initDisplayOptions(Options displayOptions)
      Overrides:
      initDisplayOptions in class FieldFactory
    • displayOptionsChanged

      public void displayOptionsChanged(Options options, String optionName, Object oldValue, Object newValue)
      Description copied from class: FieldFactory
      Notifications that the display options changed.
      Overrides:
      displayOptionsChanged in class FieldFactory
      Parameters:
      options - the Display Options object that changed.
      optionName - the name of the property that changed.
      oldValue - the old value of the property.
      newValue - the new value of the property.
    • getColor

      protected Color getColor(Variable var)
    • getMetrics

      protected FontMetrics getMetrics(Variable var)