public class JDFShape extends JDFNumList
JDFNumList.NormComparator, JDFNumList.VolumeComparatorJDFBaseDataTypes.EnumFitsValueEPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION| Constructor and Description |
|---|
JDFShape()
constructor - constructs a shape with all values set to 0.0 Double
|
JDFShape(double x,
double y)
constructor - constructs a new JDFShape with the given 2 double values third is default = 0.
|
JDFShape(double x,
double y,
double z)
constructor - constructs a new JDFShape with the given double values
|
JDFShape(JDFNumList nl)
constructor - constructs a shape with all values set via a JDFNumberList
|
JDFShape(JDFShape nl)
constructor - constructs a shape with all values set via a JDFNumberList
|
JDFShape(java.lang.String s)
constructor - constructs a shape with all values set via a String
|
JDFShape(java.util.Vector v)
Deprecated.
use typesafe constructors
|
| Modifier and Type | Method and Description |
|---|---|
static JDFShape |
createShape(java.lang.String s)
factory for JDFShape that silently returns null in case of illegal strings
|
boolean |
equals(java.lang.Object other)
equals - returns true if both JDFShapes are equal, otherwise false
|
double |
getHeight()
Deprecated.
use getY - attention height and width were accidentally exchanged
|
double |
getLength()
Deprecated.
use getZ
|
double |
getWidth()
Deprecated.
use getX - attention height and width were accidentally exchanged
|
double |
getX()
getX - returns the width
|
double |
getY()
getY - returns the width
|
double |
getZ()
getZ - returns the z value
|
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract
|
boolean |
isGreater(JDFShape x)
isGreater - equality operator >
|
boolean |
isGreaterOrEqual(JDFShape x)
isGreaterOrEqual - equality operator >=
|
boolean |
isLess(JDFShape x)
isLess - equality operator <
|
boolean |
isLessOrEqual(JDFShape x)
isLessOrEqual - equality operator <=
|
boolean |
isValid()
isValid - true if the size of the vector is 3 and all instances are Double types
|
void |
setHeight(double height)
Deprecated.
attention height and width were accidentally exchanged
|
void |
setLength(double length)
Deprecated.
|
void |
setWidth(double width)
Deprecated.
attention height and width were accidentally exchanged
|
void |
setX(double x)
setWidth - sets the x value
|
void |
setY(double y)
setY - sets the height
|
void |
setZ(double z)
set the z value
|
void |
swapXY()
swap x and y coordinates -
|
abs, clone, contains, containsAll, copyNumList, doubleAt, elementAt, getDouble, getDoubleList, getDoubleVector, getIntArray, getString, getString, intAt, isValidString, matches, max, min, norm, removeElementAt, replaceElementAt, scale, scale, scaleFromCM, scaleFromCM, scaleFromMM, scaleFromMM, scaleToCM, scaleToCM, scaleToMM, scaleToMM, set, setString, setX, shift, sort, subtract, toString, unify, volumeadd, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, forEach, get, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic JDFShape()
@Deprecated
public JDFShape(java.util.Vector v)
throws java.util.zip.DataFormatException
v - the given vectorjava.util.zip.DataFormatException - - if the Vector has not a valid formatpublic JDFShape(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given Stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic JDFShape(JDFNumList nl) throws java.util.zip.DataFormatException
nl - the given number listjava.util.zip.DataFormatException - - if the JDFNumberList has not a valid formatpublic JDFShape(JDFShape nl)
nl - the given number listpublic JDFShape(double x,
double y,
double z)
x - the x valuey - the y valuez - the z valuepublic JDFShape(double x,
double y)
x - the widthy - the heightpublic static JDFShape createShape(java.lang.String s)
s - the string to parse - if JDFXYPair compatible, a 0 z dimension value is assumedpublic void swapXY()
public boolean isValid()
throws java.util.zip.DataFormatException
isValid in class JDFNumListjava.util.zip.DataFormatException - - if the Vector has not a valid formatpublic boolean equals(java.lang.Object other)
equals in interface java.util.Collection<java.lang.Object>equals in interface java.util.List<java.lang.Object>equals in class JDFNumListpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Object>hashCode in interface java.util.List<java.lang.Object>hashCode in class JDFNumListpublic boolean isGreaterOrEqual(JDFShape x)
x - the JDFShape object to compare topublic boolean isLessOrEqual(JDFShape x)
x - the JDFShape object to compare topublic boolean isGreater(JDFShape x)
x - the JDFShape object to compare topublic boolean isLess(JDFShape x)
x - the JDFShape object to compare to@Deprecated public double getHeight()
public double getY()
@Deprecated public void setHeight(double height)
height - the heightpublic void setY(double y)
y - the height@Deprecated public double getWidth()
public double getX()
public void setX(double x)
x - the width@Deprecated public void setWidth(double width)
width - the width@Deprecated public double getLength()
public double getZ()
@Deprecated public void setLength(double length)
length - the lengthpublic void setZ(double z)
z -