|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.descriptors.attributes.AbstractAttribute viper.descriptors.attributes.Attribute viper.descriptors.attributes.Attribute_polygon
This attribute represents a polygon
Nested Class Summary | |
protected static class |
Attribute_polygon.Sizer
Checks that the current value's size. |
Nested classes inherited from class viper.filters.Filterable |
Filterable.Rule |
Field Summary |
Fields inherited from class viper.descriptors.attributes.Attribute |
composition, compositionTolerance, compositionType, errors, value |
Constructor Summary | |
Attribute_polygon()
Constructs a new static polygon-valued attribute. |
|
Attribute_polygon(Attribute old)
Copies the old attribute. |
|
Attribute_polygon(boolean dynamic)
Constructs a new polygon valued attribute. |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this Attribute. |
Filterable.Rule |
convertRule(java.lang.String unparsedRule,
java.util.List unparsedValues,
ErrorWriter err)
This converts a string into a rule, writing out errors in the format to err . |
Rational |
getArea()
Gets the area of the polygon. |
Rational |
getAreaOfIntersectionWith(Attribute_polygon other)
Gets the area of the polygon shared with the other polygon. |
java.lang.String |
getType()
Returns the Attribute type, eg lvalue or bbox . |
boolean |
isValidRule(java.lang.String ruleName)
Tell if a name is a valid rule or not |
void |
setArchetype(org.w3c.dom.Element E)
Sets the archetype associated with this descriptor. |
void |
setArchetype(java.lang.String value)
Sets the archetype associated with this descriptor. |
Methods inherited from class viper.descriptors.attributes.Attribute |
compareTo, compose, crop, getCompositionType, getExtraConfig, getStaticValue, getValue, getValues, getValueToString, getXMLFormat, getXMLFormat, isCompositionType, isType, nullXML, nullXML, parseExtraConfig, passes, possibleValueOf, possibleValueOf, setCompositionType, setDefaultValue, setDefaultValue, setExtraConfig, setFrameSpan, setName, setOutputWidth, setStaticValue, setValue, setValue, setValue, setValue, setValue, toString |
Methods inherited from class viper.descriptors.attributes.AbstractAttribute |
getArchetype, getDefault, getExtraConfigInXML, getExtraConfigString, getName, isDynamic, loadAttributeType, named, named, parseAnInt, resetDefault, setArchetype, setDynamic |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Attribute_polygon()
public Attribute_polygon(boolean dynamic)
dynamic
- if the attribute can take on different
values at different framespublic Attribute_polygon(Attribute old)
old
- the old attributeMethod Detail |
public java.lang.String getType()
AbstractAttribute
lvalue
or bbox
.
getType
in class Attribute
public java.lang.Object clone()
Attribute
clone
in class Attribute
public void setArchetype(java.lang.String value) throws BadDataException
AbstractAttribute
setArchetype
in class AbstractAttribute
value
- the description
BadDataException
public void setArchetype(org.w3c.dom.Element E) throws BadDataException
AbstractAttribute
setArchetype
in class AbstractAttribute
E
- the description
BadDataException
public Rational getArea()
public Rational getAreaOfIntersectionWith(Attribute_polygon other)
other
- the other polygon
public boolean isValidRule(java.lang.String ruleName)
Filterable
isValidRule
in interface Filterable
isValidRule
in class Attribute
public Filterable.Rule convertRule(java.lang.String unparsedRule, java.util.List unparsedValues, ErrorWriter err) throws BadDataException
err
.
convertRule
in interface Filterable
convertRule
in class Attribute
unparsedRule
- A string containing a single rule.unparsedValues
- A string containing values.err
- A place to log the errors.
BadDataException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |