diva.sketch.toolbox
Class ZoomRecognizer.ZoomData

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

public static class ZoomRecognizer.ZoomData
extends AbstractXmlBuilder
implements TypedData

A classification type for zooming.


Field Summary
static String CENTER_X
           
static String CENTER_Y
           
static Type type
          The string id for this classification type.
static String ZOOM_AMOUNT
           
 
Constructor Summary
ZoomRecognizer.ZoomData(double cx, double cy, double zoom)
          Contruct a zoom type object with the zoom amount given.
 
Method Summary
 Object build(XmlElement in, String type)
          Given an XmlElement, create and return an internal representtion of it.
 XmlElement generate(Object in)
          Unable to generate XML by default.
 double getCenterX()
          Return the X coordinate of the center point.
 double getCenterY()
          Return the Y coordinate of the center point.
 Type getType()
          Return the uniquely identifying type associated with this piece of data.
 double getZoomAmount()
          Return the absolute scale factor relative to the zoom center point.
 
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

ZOOM_AMOUNT

public static final String ZOOM_AMOUNT
See Also:
Constant Field Values

CENTER_X

public static final String CENTER_X
See Also:
Constant Field Values

CENTER_Y

public static final String CENTER_Y
See Also:
Constant Field Values

type

public static final Type type
The string id for this classification type.

Constructor Detail

ZoomRecognizer.ZoomData

public ZoomRecognizer.ZoomData(double cx,
                               double cy,
                               double zoom)
Contruct a zoom type object with the zoom 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

getZoomAmount

public double getZoomAmount()
Return the absolute scale factor relative to the zoom center point.


getCenterX

public double getCenterX()
Return the X coordinate of the center point.


getCenterY

public double getCenterY()
Return the Y coordinate of the center point.


build

public Object build(XmlElement in,
                    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.