Package ghidra.app.util.viewer.field
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
-
Field Summary
Fields inherited from class ghidra.app.util.viewer.field.FieldFactory
BASE_LISTING_FONT_ID, baseFont, colorOptionName, enabled, FONT_OPTION_NAME, hlProvider, model, name, startX, style, styleOptionName, width -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a AbstractVariableFieldFactory with given name.protectedAbstractVariableFieldFactory(String name, FieldFormatModel model, ListingHighlightProvider highlightProvider, Options displayOptions, Options fieldOptions) AbstractVariableFieldFactory constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayOptionsChanged(Options options, String optionName, Object oldValue, Object newValue) Notifications that the display options changed.protected Colorprotected FontMetricsgetMetrics(Variable var) protected voidinitDisplayOptions(Options displayOptions) Methods inherited from class ghidra.app.util.viewer.field.FieldFactory
acceptsType, fieldOptionsChanged, getField, getFieldLocation, getFieldModel, getFieldName, getFieldText, getMetrics, getMetrics, getProgramLocation, getStartX, getWidth, hasSamePath, initFieldOptions, isEnabled, newInstance, servicesChanged, setEnabled, setStartX, setWidth, simplifyTemplates, supportsLocation
-
Constructor Details
-
AbstractVariableFieldFactory
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 fieldmodel- 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
- Overrides:
initDisplayOptionsin classFieldFactory
-
displayOptionsChanged
public void displayOptionsChanged(Options options, String optionName, Object oldValue, Object newValue) Description copied from class:FieldFactoryNotifications that the display options changed.- Overrides:
displayOptionsChangedin classFieldFactory- 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
-
getMetrics
-