Package org.web3d.vrml.renderer
Class DefaultLocator
java.lang.Object
org.web3d.vrml.renderer.DefaultLocator
- All Implemented Interfaces:
DocumentLocator
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the current column number at the end of the last processing event.int
Get the current line number of the last event processing step.
-
Constructor Details
-
DefaultLocator
public DefaultLocator()Default constructor. Does nothing.
-
-
Method Details
-
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 interfaceDocumentLocator
- 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 interfaceDocumentLocator
- Returns:
- The line number of the last processing step.
-