Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.renderer
Class DefaultLocator

java.lang.Object
  extended by org.web3d.vrml.renderer.DefaultLocator
All Implemented Interfaces:
Locator

public class DefaultLocator
extends java.lang.Object
implements Locator

A default locator implementation for when the parser does not provide one.

This implementation always returns -1.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Constructor Summary
DefaultLocator()
          Default constructor.
 
Method Summary
 int getColumnNumber()
          Get the current column number at the end of the last processing event.
 int getLineNumber()
          Get the current line number of the last event processing step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLocator

public DefaultLocator()
Default constructor. Does nothing.

Method Detail

getColumnNumber

public int getColumnNumber()
Get the current column number at the end of the last processing event. If column number support is not provided, this should always return -1.

Specified by:
getColumnNumber in interface Locator
Returns:
The column number of the last processing event

getLineNumber

public int getLineNumber()
Get the current line number of the last event processing step. If the last processing step takes more than one line, this is the first line of the processing that called the callback event.

Specified by:
getLineNumber in interface Locator
Returns:
The line number of the last processing step.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium