|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.xml.AbstractXmlBuilder
diva.sketch.toolbox.ZoomRecognizer.ZoomData
public static class ZoomRecognizer.ZoomData
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 |
---|
public static final String ZOOM_AMOUNT
public static final String CENTER_X
public static final String CENTER_Y
public static final Type type
Constructor Detail |
---|
public ZoomRecognizer.ZoomData(double cx, double cy, double zoom)
Method Detail |
---|
public Type getType()
TypedData
getType
in interface TypedData
public double getZoomAmount()
public double getCenterX()
public double getCenterY()
public Object build(XmlElement in, String type)
AbstractXmlBuilder
public Graph build (XmlELement elt, String type);
build
in interface XmlBuilder
build
in class AbstractXmlBuilder
public XmlElement generate(Object in)
AbstractXmlBuilder
generate
in interface XmlBuilder
generate
in class AbstractXmlBuilder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |