public abstract class DocumentLine extends Line
StyledDocument.
One object
of this class represents a line in the document by holding
a PositionRef, which can represent a position in an open or
closed document.| Modifier and Type | Class | Description |
|---|---|---|
static class |
DocumentLine.Set |
Abstract implementation of
Line.Set. |
Line.ShowOpenType, Line.ShowVisibilityType| Modifier and Type | Field | Description |
|---|---|---|
protected PositionRef |
pos |
reference to one position on the line
|
PROP_ANNOTATION_COUNT, PROP_DELETED, PROP_TEXTPROP_LINE_NUMBER, SHOW_GOTO, SHOW_REUSE, SHOW_REUSE_NEW, SHOW_SHOW, SHOW_TOFRONT, SHOW_TRY_SHOW| Constructor | Description |
|---|---|
DocumentLine(org.openide.util.Lookup obj,
PositionRef pos) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addAnnotation(Annotation anno) |
Add annotation to this Annotatable class
|
boolean |
equals(java.lang.Object o) |
|
int |
getLineNumber() |
Get the line number.
|
java.lang.String |
getText() |
Get content of the annotatable.
|
int |
hashCode() |
|
boolean |
isBreakpoint() |
Deprecated.
|
void |
markCurrentLine() |
Deprecated.
|
void |
markError() |
Deprecated.
|
protected void |
removeAnnotation(Annotation anno) |
Remove annotation to this Annotatable class
|
void |
setBreakpoint(boolean b) |
Deprecated.
|
abstract void |
show(int kind,
int column) |
Deprecated.
|
void |
unmarkCurrentLine() |
Deprecated.
|
void |
unmarkError() |
Deprecated.
|
addPropertyChangeListener, firePropertyChange, getAnnotationCount, isDeleted, removePropertyChangeListenercanBeMarkedCurrent, createPart, getDisplayName, getLookup, show, show, showprotected PositionRef pos
public DocumentLine(org.openide.util.Lookup obj,
PositionRef pos)
obj - context we belong topos - position on the linepublic int getLineNumber()
LineLine.Set lineSet =Line l = l.equals (lineSet.getCurrent (l.getLineNumber ()))
getLineNumber in class Line@Deprecated
public abstract void show(int kind,
int column)
Lineshow in class Linekind - one of Line.SHOW_TRY_SHOW, Line.SHOW_SHOW, or Line.SHOW_GOTOcolumn - the column of this line which should be selected (starting at 0),
value -1 does not change previously selected column@Deprecated public void setBreakpoint(boolean b)
LinesetBreakpoint in class Lineb - true to turn on@Deprecated public boolean isBreakpoint()
LineisBreakpoint in class Linetrue is there is@Deprecated public void markError()
Line@Deprecated public void unmarkError()
LineunmarkError in class Line@Deprecated public void markCurrentLine()
LinemarkCurrentLine in class Line@Deprecated public void unmarkCurrentLine()
LineunmarkCurrentLine in class Linepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected void addAnnotation(Annotation anno)
addAnnotation in class Annotatableanno - annotation which will be attached to this classprotected void removeAnnotation(Annotation anno)
removeAnnotation in class Annotatableanno - annotation which will be detached from this classpublic java.lang.String getText()
AnnotatableBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.