Package ghidra.app.util.viewer.field
Class ImageFactoryField
java.lang.Object
docking.widgets.fieldpanel.field.SimpleImageField
ghidra.app.util.viewer.field.ImageFactoryField
- All Implemented Interfaces:
Field,ListingField
Class for displaying images in fields.
-
Field Summary
Fields inherited from class docking.widgets.fieldpanel.field.SimpleImageField
center, height, heightAbove, icon, isPrimary, metrics, startX, width -
Constructor Summary
ConstructorsConstructorDescriptionImageFactoryField(FieldFactory factory, ImageIcon icon, ProxyObj proxy, FontMetrics metrics, int x, int width) ConstructorImageFactoryField(FieldFactory factory, ImageIcon icon, ProxyObj proxy, FontMetrics metrics, int x, int width, boolean center) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetClickedObject(FieldLocation fieldLocation) Returns the object that was clicked on a Field for the given FieldLocation.Returns the FieldFactory that generated this Field.Returns the model that contains the FieldFactory that generated this Field.getProxy()Returns the object that this field is associated with.Methods inherited from class docking.widgets.fieldpanel.field.SimpleImageField
contains, getCol, getCursorBounds, getHeight, getHeightAbove, getHeightBelow, getNumCols, getNumDataRows, getNumRows, getPreferredWidth, getRow, getScrollableUnitIncrement, getStartX, getText, getTextWithLineSeparators, getWidth, getX, getY, isPrimary, isValid, paint, rowHeightChanged, screenLocationToTextOffset, setPrimary, textOffsetToScreenLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface docking.widgets.fieldpanel.field.Field
contains, getCol, getCursorBounds, getHeight, getNumCols, getNumDataRows, getNumRows, getPreferredWidth, getRow, getScrollableUnitIncrement, getStartX, getText, getTextWithLineSeparators, getWidth, getX, getY, isPrimary, isValid, paint, rowHeightChanged, screenLocationToTextOffset, textOffsetToScreenLocationMethods inherited from interface ghidra.app.util.viewer.field.ListingField
getHeightAbove, getHeightBelow
-
Constructor Details
-
ImageFactoryField
public ImageFactoryField(FieldFactory factory, ImageIcon icon, ProxyObj proxy, FontMetrics metrics, int x, int width) Constructor- Parameters:
factory- the FieldFactory that generated this field.icon- the ImageIcon to display.proxy- the object that this field represents.metrics- the FontMetrics used to render.x- the starting x position for this field.width- the width of this field.
-
ImageFactoryField
public ImageFactoryField(FieldFactory factory, ImageIcon icon, ProxyObj proxy, FontMetrics metrics, int x, int width, boolean center) Constructor- Parameters:
factory- the FieldFactory that generated this field.icon- the ImageIcon to display.proxy- the object that this field represents.metrics- the FontMetrics used to render.x- the starting x position for this field.width- the width of this field.center- centers the image if true.
-
-
Method Details
-
getFieldFactory
Returns the FieldFactory that generated this Field.- Specified by:
getFieldFactoryin interfaceListingField- Returns:
- the FieldFactory that generated this Field
-
getFieldModel
Returns the model that contains the FieldFactory that generated this Field.- Specified by:
getFieldModelin interfaceListingField- Returns:
- the fieldModel that has the FieldFactory that generated this field.
-
getProxy
Returns the object that this field is associated with.- Specified by:
getProxyin interfaceListingField- Returns:
- the object that the fieldFactory used to generate the information in this field.
-
getClickedObject
Description copied from interface:ListingFieldReturns the object that was clicked on a Field for the given FieldLocation. This may be the field itself or a lower-level entity, such as a FieldElement.- Specified by:
getClickedObjectin interfaceListingField- Parameters:
fieldLocation- The location that was clicked.- Returns:
- the object that was clicked
- See Also:
-