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
public abstract class AbstractVariableFieldFactory extends FieldFactory
-
-
Field Summary
-
Fields inherited from class ghidra.app.util.viewer.field.FieldFactory
baseFont, color, colorOptionName, DEFAULT_FIELD_FONT, displayOptions, enabled, FONT_OPTION_NAME, hlProvider, model, name, startX, style, styleOptionName, underlineColor, width
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractVariableFieldFactory(java.lang.String name)
Constructs a AbstractVariableFieldFactory with given name.protected
AbstractVariableFieldFactory(java.lang.String name, FieldFormatModel model, HighlightProvider highlightProvider, Options displayOptions, Options fieldOptions)
AbstractVariableFieldFactory constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
displayOptionsChanged(Options options, java.lang.String optionName, java.lang.Object oldValue, java.lang.Object newValue)
Notifications that the display options changed.protected java.awt.Color
getColor(Variable var)
protected java.awt.FontMetrics
getMetrics(Variable var)
protected void
initDisplayOptions(Options displayOptions)
-
Methods inherited from class ghidra.app.util.viewer.field.FieldFactory
acceptsType, fieldOptionsChanged, getDefaultColor, getField, getFieldLocation, getFieldModel, getFieldName, getFieldText, getMetrics, getMetrics, getProgramLocation, getStartX, getWidth, hasSamePath, initDisplayOptions, isEnabled, newInstance, optionsChanged, servicesChanged, setEnabled, setStartX, setWidth
-
-
-
-
Constructor Detail
-
AbstractVariableFieldFactory
public AbstractVariableFieldFactory(java.lang.String name)
Constructs a AbstractVariableFieldFactory with given name. Used only as potential field.- Parameters:
name
- the name of the field.
-
AbstractVariableFieldFactory
protected AbstractVariableFieldFactory(java.lang.String name, FieldFormatModel model, HighlightProvider 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 Detail
-
initDisplayOptions
protected void initDisplayOptions(Options displayOptions)
-
displayOptionsChanged
public void displayOptionsChanged(Options options, java.lang.String optionName, java.lang.Object oldValue, java.lang.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
protected java.awt.Color getColor(Variable var)
-
getMetrics
protected java.awt.FontMetrics getMetrics(Variable var)
-
-