org.gjt.sp.jedit.textarea
Class ColumnBlock
java.lang.Object
org.gjt.sp.jedit.textarea.Selection
org.gjt.sp.jedit.textarea.Selection.Rect
org.gjt.sp.jedit.textarea.ColumnBlock
- All Implemented Interfaces:
- java.lang.Cloneable, Node
public class ColumnBlock
- extends Selection.Rect
- implements Node
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ColumnBlock
public ColumnBlock()
ColumnBlock
public ColumnBlock(JEditBuffer buffer,
int startLine,
int startColumn,
int endLine,
int endColumn)
ColumnBlock
public ColumnBlock(JEditBuffer buffer,
int startLine,
int endLine)
addChild
public void addChild(Node node)
- Specified by:
addChild
in interface Node
getChildren
public java.util.Vector getChildren()
- Specified by:
getChildren
in interface Node
getParent
public Node getParent()
- Specified by:
getParent
in interface Node
setWidth
public void setWidth(int width)
setParent
public void setParent(Node parent)
setLines
public void setLines(java.util.Vector<ColumnBlockLine> lines)
getLines
public java.util.Vector<ColumnBlockLine> getLines()
getStartLine
public int getStartLine()
- Description copied from class:
Selection
- Returns the starting line number of this selection.
- Overrides:
getStartLine
in class Selection
getEndLine
public int getEndLine()
- Description copied from class:
Selection
- Returns the ending line number of this selection.
- Overrides:
getEndLine
in class Selection
getColumnWidth
public int getColumnWidth()
isLineWithinThisBlock
public int isLineWithinThisBlock(int line)
getContainingBlock
public ColumnBlock getContainingBlock(int line,
int offset)
getColumnBlock
public ColumnBlock getColumnBlock(int line,
int offset)
searchChildren
public ColumnBlock searchChildren(int line)
toString
public java.lang.String toString()
- Overrides:
toString
in class Selection
setDirtyStatus
public void setDirtyStatus(boolean status)
updateLineNo
public void updateLineNo(int line)
updateColumnBlockLineOffset
public void updateColumnBlockLineOffset(int line,
int offsetAdd,
boolean increaseStartOffset)
setTabSizeDirtyStatus
public void setTabSizeDirtyStatus(boolean dirty,
boolean recursive)
areTabSizesDirty
public boolean areTabSizesDirty()