diva.sketch.toolbox
Class PanRecognizer.PanData

java.lang.Object
  extended by diva.util.xml.AbstractXmlBuilder
      extended by diva.sketch.toolbox.PanRecognizer.PanData
All Implemented Interfaces:
TypedData, XmlBuilder
Enclosing class:
PanRecognizer

public static class PanRecognizer.PanData
extends AbstractXmlBuilder
implements TypedData

A classification type for paning.


Field Summary
static String PAN_X
           
static String PAN_Y
           
static Type type
          The static type associated with this typed data.
 
Constructor Summary
PanRecognizer.PanData()
          For XmlBuilder interface; do not call directly!
PanRecognizer.PanData(double panX, double panY)
          Contruct a pan type object with the pan amount given.
 
Method Summary
 Object build(XmlElement elt, String type)
          Given an XmlElement, create and return an internal representtion of it.
 XmlElement generate(Object in)
          Unable to generate XML by default.
 double getPanX()
           
 double getPanY()
           
 Type getType()
          Return the uniquely identifying type associated with this piece of data.
 
Methods inherited from class diva.util.xml.AbstractXmlBuilder
getDelegate, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface diva.util.xml.XmlBuilder
setDelegate
 

Field Detail

PAN_X

public static final String PAN_X
See Also:
Constant Field Values

PAN_Y

public static final String PAN_Y
See Also:
Constant Field Values

type

public static final Type type
The static type associated with this typed data.

Constructor Detail

PanRecognizer.PanData

public PanRecognizer.PanData()
For XmlBuilder interface; do not call directly!


PanRecognizer.PanData

public PanRecognizer.PanData(double panX,
                             double panY)
Contruct a pan type object with the pan amount given.

Method Detail

getType

public Type getType()
Description copied from interface: TypedData
Return the uniquely identifying type associated with this piece of data.

Specified by:
getType in interface TypedData

getPanX

public double getPanX()

getPanY

public double getPanY()

build

public Object build(XmlElement elt,
                    String type)
Description copied from class: AbstractXmlBuilder
Given an XmlElement, create and return an internal representtion of it. Implementors should also provide a more type-specific version of this method:
   public Graph build (XmlELement elt, String type);
 

Specified by:
build in interface XmlBuilder
Specified by:
build in class AbstractXmlBuilder

generate

public XmlElement generate(Object in)
Description copied from class: AbstractXmlBuilder
Unable to generate XML by default.

Specified by:
generate in interface XmlBuilder
Overrides:
generate in class AbstractXmlBuilder


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