diva.sketch.recognition
Interface SceneElement

All Known Subinterfaces:
ChoiceElement, CompositeElement, StrokeElement

public interface SceneElement

A scene element is an interface that encompasses various elements that can be found in the scene: stroke elements, composite elements, and choice elements. Stroke elements represent individual strokes in the scene and lack interpretation. Composite elements represent interpretations of single strokes, multiple strokes, or other composite elements. Choice elements are an optimization for the parsing algorithm, and represent a choice between different composite elements that have the same type but different data.

Version:
$Revision: 1.7 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)
See Also:
Scene, StrokeElement, CompositeElement, ChoiceElement

Method Summary
 Rectangle2D getBounds()
          Return the bounds of this element if it is a stroke or the union of the bounds of its children if it is a composite or choice.
 Set parents()
          Return a set of the parents of this element in the ambiguous parse tree.
 

Method Detail

getBounds

Rectangle2D getBounds()
Return the bounds of this element if it is a stroke or the union of the bounds of its children if it is a composite or choice.


parents

Set parents()
Return a set of the parents of this element in the ambiguous parse tree. The returned set is immutable, so all operations that attempt to modify it will fail with an unsupported operation exception.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.