Class Callout

java.lang.Object
com.nwalsh.xalan.Callout
All Implemented Interfaces:
Comparable

public class Callout extends Object implements Comparable

Utility 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:
  • Field Details

  • Constructor Details

    • Callout

      public Callout(int callout, Element area, int line, int col, int type)
      The constructor; initialize the private data structures.
    • Callout

      public Callout(int callout, Element area, int line, int col, String otherType)
      The constructor; initialize the private data structures.
  • Method Details

    • compareTo

      public int compareTo(Object o)

      The compareTo method compares this Callout with another.

      Given two Callouts, A and B, A invalid input: '<' B if:

      1. A.line invalid input: '<' B.line, or
      2. A.line = B.line invalid input: '&'invalid input: '&' A.col invalid input: '<' B.col, or
      3. A.line = B.line invalid input: '&'invalid input: '&' A.col = B.col invalid input: '&'invalid input: '&' A.callout invalid input: '<' B.callout
      4. Otherwise, they're equal.
      Specified by:
      compareTo in interface Comparable
    • getArea

      public 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 String getOtherType()
      Access the Callout's otherType.