|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.parser2d.HeightRatioRelation
public class HeightRatioRelation
Calculate the ratio of the height of the first input scene element to the height of the second.
Field Summary | |
---|---|
static String |
NAME
The name that this relation goes by in text form. |
Constructor Summary | |
---|---|
HeightRatioRelation()
|
Method Summary | |
---|---|
double |
apply(SceneElement e1,
SceneElement e2)
Calculate the ratio of the height of the first element to the height of the second. |
String |
getName()
The name of this relation. |
String |
toString()
Print out the contents of this relation. |
String |
toString(String e1Name,
String e2Name)
Pretty print the relation in the grammar format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String NAME
Constructor Detail |
---|
public HeightRatioRelation()
Method Detail |
---|
public double apply(SceneElement e1, SceneElement e2)
apply
in interface Relation
public String getName()
getName
in interface Relation
public String toString(String e1Name, String e2Name)
toString
in interface Relation
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |