public class ColorParser
extends java.lang.Object
color
statement and returns it as a
ColorData
object.Constructor and Description |
---|
ColorParser() |
Modifier and Type | Method and Description |
---|---|
static ColorReplaceData |
parse(IDocument doc,
IRegion position,
boolean forwardSearch)
Parses a Povray
color statement extracted from the document and returns
it as a ColorReplaceData object. |
public static ColorReplaceData parse(IDocument doc, IRegion position, boolean forwardSearch)
color
statement extracted from the document and returns
it as a ColorReplaceData
object.doc
- The document being used for extracting the color
statement.region
- The IRegion
within the document indicating the position of the color
statement.ColorReplaceData
object representing the color
statement or
NULL
if the statement can not be parsed.