com.powerml.structures.shapes
Class AdjustHandle

java.lang.Object
  extended bycom.powerml.structures.shapes.AdjustHandle
All Implemented Interfaces:
java.io.Serializable

public class AdjustHandle
extends java.lang.Object
implements java.io.Serializable

Represents an adjustment handle used to adjust shape parameters.

See Also:
Serialized Form

Method Summary
 void addXml(org.dom4j.Element parent, int roundPrecision)
          Transforms current instance to XML and adds it to a parent element.
 double getDefaultValue()
          Returns the default value of the handle.
 double getValue()
          Returns the value of the handle.
 boolean isDefault()
          Checks if the handle value is equal to the default value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addXml

public void addXml(org.dom4j.Element parent,
                   int roundPrecision)
Transforms current instance to XML and adds it to a parent element.

Parameters:
parent - parent element
roundPrecision - rounding precision

getDefaultValue

public double getDefaultValue()
Returns the default value of the handle.

Returns:
default value

getValue

public double getValue()
Returns the value of the handle.

Returns:
handle value

isDefault

public boolean isDefault()
Checks if the handle value is equal to the default value.

Returns:
true if default, otherwise false


© 2004-2005 Ralf Terdic. All rights reserved.
www.powerml.com