| java.lang.Object com.nwalsh.xalan.Callout
Callout | public class Callout implements Comparable(Code) | | Utility class for the Verbatim extension (ignore this).
$Id: Callout.java,v 1.1 2006/05/31 17:21:20 mbatchelor Exp $
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.
author: Norman Walsh author: ndw@nwalsh.com See Also: Verbatim version: $Id: Callout.java,v 1.1 2006/05/31 17:21:20 mbatchelor Exp $ |
Constructor Summary | |
public | Callout(int callout, Element area, int line, int col, int type) The constructor; initialize the private data structures. | public | Callout(int callout, Element area, int line, int col, String otherType) The constructor; initialize the private data structures. |
CALS_PAIR | final public static int CALS_PAIR(Code) | | |
LINE_COLUMN | final public static int LINE_COLUMN(Code) | | |
LINE_COLUMN_PAIR | final public static int LINE_COLUMN_PAIR(Code) | | |
LINE_RANGE | final public static int LINE_RANGE(Code) | | |
OTHER | final public static int OTHER(Code) | | |
Callout | public Callout(int callout, Element area, int line, int col, int type)(Code) | | The constructor; initialize the private data structures.
|
Callout | public Callout(int callout, Element area, int line, int col, String otherType)(Code) | | The constructor; initialize the private data structures.
|
compareTo | public int compareTo(Object o)(Code) | | 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.
|
getCallout | public int getCallout()(Code) | | Access the Callout's callout number.
|
getColumn | public int getColumn()(Code) | | Access the Callout's column.
|
getLine | public int getLine()(Code) | | Access the Callout's line.
|
getOtherType | public String getOtherType()(Code) | | Access the Callout's otherType.
|
getType | public int getType()(Code) | | Access the Callout's type.
|
|
|