Interface MarginProvider
public interface MarginProvider
Interface for objects that want to add a component to the listing's left margin.
-
Method Summary
Modifier and TypeMethodDescriptionGet the component to show the margin markers.getMarkerLocation
(int x, int y) Get the marker location for the given x, y point.boolean
Return true if can be resized.void
setProgram
(Program program, AddressIndexMap addressIndexMap, VerticalPixelAddressMap pixelMap) Set the program and associated maps.
-
Method Details
-
getComponent
JComponent getComponent()Get the component to show the margin markers.- Returns:
- the component
-
isResizeable
boolean isResizeable()Return true if can be resized.- Returns:
- true if can be resized.
-
setProgram
Set the program and associated maps.- Parameters:
program
- the program to use.addressIndexMap
- the address-index map to use.pixelMap
- the vertical pixel map to use.
-
getMarkerLocation
Get the marker location for the given x, y point.- Parameters:
x
- the horizontal coordinate.y
- the vertical coordinate.- Returns:
- the location
-