|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.datatypes.JDFRangeList
org.cip4.jdflib.datatypes.JDFShapeRangeList
public class JDFShapeRangeList
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
JDFBaseDataTypes.EnumFitsValue |
| Field Summary |
|---|
| Fields inherited from class org.cip4.jdflib.datatypes.JDFRangeList |
|---|
rangeList |
| Fields inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION |
| Constructor Summary | |
|---|---|
JDFShapeRangeList()
empty constructor |
|
JDFShapeRangeList(JDFShapeRangeList rl)
copy constructor constructs a JDFShapeRangeList with the given JDFShapeRangeList |
|
JDFShapeRangeList(String s)
constructs a JDFShapeRangeList from the values of a given String |
|
| Method Summary | |
|---|---|
void |
append(JDFShape x)
append - adds an individual JDFShape element |
void |
append(JDFShape xMin,
JDFShape xMax)
append - adds an element defined by two JDFShapes: xMin~xMax |
void |
append(JDFShapeRange x)
append - adds an element defined by a JDFShapeRange |
static JDFShapeRangeList |
createShapeRangeList(String s)
factory for JDFShapeRangeList that silently returns null in case of illegal strings |
boolean |
inRange(JDFShape x)
inRange - check whether shape 'x' is in the shape range defined by 'this' |
boolean |
isOrdered()
isOrdered - tests if 'this' is OrderedRangeList |
boolean |
isUniqueOrdered()
isUniqueOrdered - tests if 'this' is UniqueOrdered RangeList |
boolean |
isValid(String s)
isValid - validate the given String |
void |
setString(String s)
setString - deserialize a string Reads the string, which represents JDFShapeRangeList, and converts it into real JDFShapeRangeList |
| Methods inherited from class org.cip4.jdflib.datatypes.JDFRangeList |
|---|
at, begin, clear, elementAt, end, equals, erase, getString, getString, hashCode, isList, isPartOfRange, isPartOfRange, isUnique, remove, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDFShapeRangeList()
public JDFShapeRangeList(JDFShapeRangeList rl)
rl -
public JDFShapeRangeList(String s)
throws DataFormatException
s - the given String
DataFormatException - - if the String has not a valid format| Method Detail |
|---|
public static JDFShapeRangeList createShapeRangeList(String s)
s - the string to parse
public boolean inRange(JDFShape x)
x - shape value to test
public void setString(String s)
throws DataFormatException
s - string to read
DataFormatException - - if the String has not a valid formatpublic boolean isValid(String s)
s - the given string
public void append(JDFShapeRange x)
x - the range to append to the listpublic void append(JDFShape x)
x - the left and right value of the range to append to the list
public void append(JDFShape xMin,
JDFShape xMax)
xMin - the left value of the range to append to the listxMax - the right value of the range to append to the listpublic boolean isOrdered()
isOrdered in class JDFRangeListpublic boolean isUniqueOrdered()
isUniqueOrdered in class JDFRangeList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||