LogicalToVisualMappingStrategy(@NotNull LogicalPosition logical, @NotNull EditorEx editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache) throws IllegalStateException { super(editor, storage, cache); myTargetLogical = logical; }
public SoftWrapApplianceManager(@NotNull SoftWrapsStorage storage, @NotNull EditorImpl editor, @NotNull SoftWrapPainter painter, CachingSoftWrapDataMapper dataMapper) { myStorage = storage; myEditor = editor; myPainter = painter; myDataMapper = dataMapper; myWidthProvider = new DefaultVisibleAreaWidthProvider(editor); }
AbstractMappingStrategy(@NotNull EditorEx editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache) { myEditor = editor; myStorage = storage; myCache = cache; }
public CachingSoftWrapDataMapper(@NotNull EditorEx editor, @NotNull SoftWrapsStorage storage) { myEditor = editor; myStorage = storage; mySearchKey = new CacheEntry(0, editor); myLogicalToOffsetStrategy = new LogicalToOffsetCalculationStrategy(editor, storage, myCache); myOffsetToLogicalStrategy = new OffsetToLogicalCalculationStrategy(editor, storage, myCache); myVisualToLogicalStrategy = new VisualToLogicalCalculationStrategy(editor, storage, myCache); }
LogicalToVisualMappingStrategy(@NotNull LogicalPosition logical, @NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull EditorTextRepresentationHelper representationHelper, @NotNull List<CacheEntry> cache) throws IllegalStateException { super(editor, storage, cache, representationHelper); myTargetLogical = logical; }
AbstractMappingStrategy(@NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache, @NotNull EditorTextRepresentationHelper representationHelper) { myEditor = editor; myStorage = storage; myCache = cache; myRepresentationHelper = representationHelper; }
public CachingSoftWrapDataMapper(@NotNull EditorEx editor, @NotNull SoftWrapsStorage storage, @NotNull EditorTextRepresentationHelper representationHelper) { myEditor = editor; myStorage = storage; myRepresentationHelper = representationHelper; mySearchKey = new CacheEntry(0, editor, representationHelper); myOffsetToLogicalStrategy = new OffsetToLogicalCalculationStrategy(editor, storage, myCache, representationHelper); myVisualToLogicalStrategy = new VisualToLogicalCalculationStrategy(editor, storage, myCache, representationHelper); }
public SoftWrapApplianceManager(@Nonnull SoftWrapsStorage storage, @Nonnull EditorImpl editor, @Nonnull SoftWrapPainter painter, CachingSoftWrapDataMapper dataMapper) { myStorage = storage; myEditor = editor; myPainter = painter; myDataMapper = dataMapper; myWidthProvider = new DefaultVisibleAreaWidthProvider(editor); myEditor.getScrollingModel().addVisibleAreaListener(e -> { updateAvailableArea(); updateLastTopLeftCornerOffset(); }); }
@SuppressWarnings({"unchecked"}) public SoftWrapsDataProvider(@NotNull SoftWrapsStorage storage) { super(SoftWrapDataProviderKeys.SOFT_WRAP, storage.getSoftWraps()); }
VisualToLogicalCalculationStrategy(@NotNull EditorEx editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache) { super(editor, storage, cache); mySearchKey = new CacheEntry(0, editor); }
OffsetToLogicalCalculationStrategy(@NotNull EditorEx editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache) { super(editor, storage, cache); }
LogicalToOffsetCalculationStrategy(@NotNull EditorEx editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache) { super(editor, storage, cache); }
VisualToLogicalCalculationStrategy(@NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache, @NotNull EditorTextRepresentationHelper representationHelper) { super(editor, storage, cache, representationHelper); mySearchKey = new CacheEntry(0, editor, representationHelper); }
OffsetToLogicalCalculationStrategy(@NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache, @NotNull EditorTextRepresentationHelper representationHelper) { super(editor, storage, cache, representationHelper); }
public CachingSoftWrapDataMapper(@Nonnull EditorEx editor, @Nonnull SoftWrapsStorage storage) { myEditor = editor; myStorage = storage; }