|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectviper.descriptors.attributes.Attribute_polygon.AbstractPolygonValue
viper.descriptors.attributes.Attribute_obox.Obox
| Nested Class Summary |
| Nested classes inherited from class viper.descriptors.attributes.Measurable |
Measurable.Difference |
| Field Summary | |
protected PolyList |
value
|
| Fields inherited from interface viper.descriptors.attributes.Composable |
ORDERED, UNORDERED |
| Constructor Summary | |
protected |
Attribute_obox.Obox()
|
| Method Summary | |
java.lang.Object |
clone()
|
Composable |
compose(Composable partner)
Generate the composition of this object with its partner. |
boolean |
contains(Pnt point)
Tests to see if the specified point is within this rectangle |
boolean |
equals(java.lang.Object o)
|
Pnt |
getCentroid()
A rational approximation of the box's centroid. |
int |
getCompositionType()
Get the type of composition to try. |
Measurable.Difference |
getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd)
Not optimized version. |
Measurable.Difference |
getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd,
Measurable.Difference old)
For performance reasons, takes an optional (could be null) Measurable.Difference to replace the data from. |
int |
getHeight()
Gets the height of the box. |
Pnt |
getNearIntersection(Pnt q1)
Get the point of intersection between the ray from the centroid of this box through q1 that is closest to q1. |
int |
getRotation()
Gets the number of degrees the box is rotated counterclockwise about its origin. |
java.lang.String |
getType()
Gets the type name. |
int |
getWidth()
Gets the width of the box. |
int |
getX()
Gets the x-coordinate of the box's origin. |
int |
getY()
Gets the y-coordinate of the box's origin. |
int |
hashCode()
|
boolean |
isValidRule(java.lang.String ruleName)
Tell if a name is a valid rule or not |
AttributeValue |
setValue(org.w3c.dom.Element el)
Sets the state of the object to the data the xml-dom element represents. |
viper.descriptors.attributes.Attribute_polygon.AbstractPolygonValue |
setValue(PolyList newVal)
|
AttributeValue |
setValue(java.lang.String S)
Sets the state of the object to the data the String represents. |
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc)
Returns an xml element for this object, sans angle brackets, eg: svalue value="something", so that the Attribute
manager can add a span value, and namespace prefix, if necessary. |
boolean |
validate(AttributeValue v)
Checks to make sure that the value can be set. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected PolyList value
| Constructor Detail |
protected Attribute_obox.Obox()
| Method Detail |
public java.lang.Object clone()
clone in interface BoxInformationpublic java.lang.String getType()
Measurable
getType in interface Measurablepublic boolean validate(AttributeValue v)
viper.descriptors.attributes.Attribute_polygon.AbstractPolygonValue
validate in interface AttributeValuev - the value to check
public AttributeValue setValue(org.w3c.dom.Element el)
setValue in interface AttributeValueel - DOM Node to parse
java.lang.IllegalArgumentException - If the data is ill-formedpublic AttributeValue setValue(java.lang.String S)
setValue in interface AttributeValueS - String representation of this type of value.
java.lang.IllegalArgumentException - If the data is ill-formedpublic org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
svalue value="something", so that the Attribute
manager can add a span value, and namespace prefix, if necessary.
toXML in interface AttributeValuedoc - the DOM Document to use while creating the element
public boolean contains(Pnt point)
BoxInformation
contains in interface BoxInformationpoint - the point to test
true iff the point is within
this rectanglepublic Pnt getCentroid()
BoxInformation
getCentroid in interface BoxInformationpublic int getHeight()
BoxInformation
getHeight in interface BoxInformationpublic Pnt getNearIntersection(Pnt q1)
BoxInformation
getNearIntersection in interface BoxInformationq1 - A point that is not the centroid.
public int getRotation()
BoxInformation
getRotation in interface BoxInformationpublic int getWidth()
BoxInformation
getWidth in interface BoxInformationpublic int getX()
BoxInformation
getX in interface BoxInformationpublic int getY()
BoxInformation
getY in interface BoxInformationpublic viper.descriptors.attributes.Attribute_polygon.AbstractPolygonValue setValue(PolyList newVal)
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()
public Measurable.Difference getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd)
throws IgnoredValueException
MeasurablegetDifference (..., null).
getDifference in interface Measurablebeta - the value to subtract/get the difference fromblackout - the bad regionignore - the ignored regioncfd - the media's information
IgnoredValueException - if this and beta are totally ignoredMeasurable.getDifference(Measurable, Measurable, Measurable,
CanonicalFileDescriptor, Measurable.Difference)
public Measurable.Difference getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd,
Measurable.Difference old)
throws IgnoredValueException
Measurable
getDistance (alpha, beta, blackout, ignore)
should
have the same effect as
getDistance (alpha.getDifference (beta, blackout, ignore))
(Except for if alpha is null... then it will use
Distances.DefaultDifference
getDifference in interface Measurablebeta - the difference to get againstblackout - the measurable to count as badignore - the measurable region to ignorecfd - the media file descriptorold - an old difference to copy into, if possible, like the array
passed to list.toArray()
IgnoredValueException - if everything is ignoredpublic boolean isValidRule(java.lang.String ruleName)
ruleName - the name of the rule to check
true if the rule name is knownpublic Composable compose(Composable partner)
Composable
compose in interface Composablepartner -
public int getCompositionType()
Composable
getCompositionType in interface ComposableORDERED or UNORDERED
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||