PageRenderTime 66ms CodeModel.GetById 58ms app.highlight 4ms RepoModel.GetById 3ms app.codeStats 0ms

/jEdit/tags/jedit-4-5-pre1/org/gjt/sp/jedit/textarea/ColumnBlockLine.java

#
Java | 79 lines | 42 code | 9 blank | 28 comment | 0 complexity | 58c287f735481501352992c86129cc75 MD5 | raw file
 1/*
 2 * jEdit - Programmer's Text Editor
 3 * :tabSize=8:indentSize=8:noTabs=false:
 4 * :folding=explicit:collapseFolds=1:
 5 *
 6 * Copyright Š 2010 jEdit contributors
 7 *
 8 * This program is free software; you can redistribute it and/or
 9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */
21package org.gjt.sp.jedit.textarea;
22
23public class ColumnBlockLine
24{
25	private int line;
26	int colStartIndex;
27	int colEndIndex;
28	float lineLength;
29	
30	//{{{ ColumnBlockLine() method
31	public ColumnBlockLine(int line,int lineStartIndex,int lineEndIndex)
32	{
33		this.line = line;
34		this.colEndIndex  = lineEndIndex;
35		this.colStartIndex = lineStartIndex;
36	}//}}}
37	
38	//{{{  getLine() method
39	public int getLine()
40	{
41		return line;
42	}//}}}
43	
44	//{{{ getColumnStartIndex() method
45	public int getColumnStartIndex()
46	{
47		return colStartIndex;
48	}//}}}
49	
50	//{{{ getColumnEndIndex() method
51	public int getColumnEndIndex()
52	{
53		return colEndIndex;
54	}//}}}
55	
56	//{{{ setLineLength() method
57	public void setLineLength(float lineLength)
58	{
59		this.lineLength = lineLength;
60	}//}}}
61	
62	//{{{  getLineLength() method
63	public float getLineLength()
64	{
65		return lineLength;
66	}//}}}
67	
68	//{{{ toString() method
69	public String toString()
70	{
71		return "[ColumnBlockLine]colStartIndex:"+colStartIndex+"  colEndIndex:"+ colEndIndex+" lineLength:"+lineLength+" line:"+line;
72	}//}}}
73	
74	//{{{ updateLineNo() method
75	public void updateLineNo(int line )
76	{
77		this.line+=line;
78	}//}}}
79}