blob: 06fcfcadcb23010c9fc52b6c37114466df1a15c0 [file] [log] [blame]
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Created by IntelliJ IDEA.
* User: max
* Date: Jun 10, 2002
* Time: 5:54:59 PM
* To change template for new interface use
* Code Style | Class Templates options (Tools | IDE Options).
*/
package com.intellij.openapi.editor.ex;
import com.intellij.openapi.editor.markup.RangeHighlighter;
import com.intellij.openapi.editor.markup.TextAttributes;
import org.jetbrains.annotations.NotNull;
import java.util.Comparator;
public interface RangeHighlighterEx extends RangeHighlighter, RangeMarkerEx {
RangeHighlighterEx[] EMPTY_ARRAY = new RangeHighlighterEx[0];
boolean isAfterEndOfLine();
void setAfterEndOfLine(boolean value);
int getAffectedAreaStartOffset();
int getAffectedAreaEndOffset();
void setTextAttributes(@NotNull TextAttributes textAttributes);
Comparator<RangeHighlighterEx> BY_AFFECTED_START_OFFSET = new Comparator<RangeHighlighterEx>() {
@Override
public int compare(RangeHighlighterEx r1, RangeHighlighterEx r2) {
return r1.getAffectedAreaStartOffset() - r2.getAffectedAreaStartOffset();
}
};
}