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
ModifierConstructorDescriptionConstructs a AbstractVariableFieldFactory with given name.protected
AbstractVariableFieldFactory
(String name, FieldFormatModel model, ListingHighlightProvider highlightProvider, Options displayOptions, Options fieldOptions) AbstractVariableFieldFactory constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayOptionsChanged
(Options options, String optionName, Object oldValue, Object newValue) Notifications that the display options changed.protected Color
protected FontMetrics
getMetrics
(Variable var) protected void
initDisplayOptions
(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:
initDisplayOptions
in classFieldFactory
-
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 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
-