Package com.nwalsh.xalan
Class Callout
- java.lang.Object
-
- com.nwalsh.xalan.Callout
-
- All Implemented Interfaces:
java.lang.Comparable
public class Callout extends java.lang.Object implements java.lang.ComparableUtility class for the Verbatim extension (ignore this).
$Id: Callout.java 5932 2006-05-04 13:23:51Z nwalsh $
Copyright (C) 2000 Norman Walsh.
This class is just for book keeping in the Verbatim class. It stores information about the location of callouts.
Only line/column based callouts are supported. This class implements the Comparable interface so that callouts can be sorted. Callouts are sorted so that they occur in left-to-right, top-to-bottom order based on line/column.
Change Log:
- 1.0
Initial release.
- See Also:
Verbatim
-
-
Field Summary
Fields Modifier and Type Field Description static intCALS_PAIRstatic intLINE_COLUMNstatic intLINE_COLUMN_PAIRstatic intLINE_RANGEstatic intOTHER
-
Constructor Summary
Constructors Constructor Description Callout(int callout, org.w3c.dom.Element area, int line, int col, int type)The constructor; initialize the private data structures.Callout(int callout, org.w3c.dom.Element area, int line, int col, java.lang.String otherType)The constructor; initialize the private data structures.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)The compareTo method compares this Callout with another.org.w3c.dom.ElementgetArea()Access the Callout's area.intgetCallout()Access the Callout's callout number.intgetColumn()Access the Callout's column.intgetLine()Access the Callout's line.java.lang.StringgetOtherType()Access the Callout's otherType.intgetType()Access the Callout's type.
-
-
-
Field Detail
-
CALS_PAIR
public static final int CALS_PAIR
- See Also:
- Constant Field Values
-
LINE_COLUMN
public static final int LINE_COLUMN
- See Also:
- Constant Field Values
-
LINE_COLUMN_PAIR
public static final int LINE_COLUMN_PAIR
- See Also:
- Constant Field Values
-
LINE_RANGE
public static final int LINE_RANGE
- See Also:
- Constant Field Values
-
OTHER
public static final int OTHER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Callout
public Callout(int callout, org.w3c.dom.Element area, int line, int col, int type)The constructor; initialize the private data structures.
-
Callout
public Callout(int callout, org.w3c.dom.Element area, int line, int col, java.lang.String otherType)The constructor; initialize the private data structures.
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object o)
The compareTo method compares this Callout with another.
Given two Callouts, A and B, A < B if:
- A.line < B.line, or
- A.line = B.line && A.col < B.col, or
- A.line = B.line && A.col = B.col && A.callout < B.callout
- Otherwise, they're equal.
- Specified by:
compareToin interfacejava.lang.Comparable
-
getArea
public org.w3c.dom.Element getArea()
Access the Callout's area.
-
getLine
public int getLine()
Access the Callout's line.
-
getColumn
public int getColumn()
Access the Callout's column.
-
getCallout
public int getCallout()
Access the Callout's callout number.
-
getType
public int getType()
Access the Callout's type.
-
getOtherType
public java.lang.String getOtherType()
Access the Callout's otherType.
-
-