|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.domain2d.AbstractLoopTemplate
| Field Summary | |
protected java.awt.geom.Point2D[] |
adapted
Adapted control points. |
protected java.awt.geom.Point2D[] |
controls
Original control points. |
protected java.awt.geom.Point2D |
entryDirection
|
protected java.awt.geom.Point2D |
exitDirection
|
protected int |
FIT
|
protected java.awt.geom.Point2D[] |
glyph_pos
|
protected int |
notFit
|
protected java.awt.geom.Point2D |
spacer
The spacer that this template match. |
protected int |
TIMEOUT_EXPIRED
|
protected int |
TOO_MUCH_RESIDUES
|
protected int |
UNDEFINED
|
| Constructor Summary | |
AbstractLoopTemplate(java.awt.geom.Point2D spacer,
java.awt.geom.Point2D entryDirection,
java.awt.geom.Point2D exitDirection,
int numpoints)
|
|
| Method Summary | |
void |
adapt(int numglyph,
double dist)
Adapts the template to accomodate numglyphs glyphs separated by a distance dist. |
protected abstract void |
adaptWithParameter(double l,
java.awt.geom.Point2D[] array)
|
protected abstract double |
adjustParameter(double l,
int fit)
|
protected double |
distance(double x,
double y,
double last_x,
double last_y)
|
protected double |
distance(java.awt.geom.Point2D a,
java.awt.geom.Point2D b)
|
java.awt.geom.Point2D[] |
getAdapted()
Adapted control points. |
java.awt.geom.Point2D[] |
getControls()
Original control points. |
java.awt.geom.Point2D[] |
getGlyphPositions()
Returns the positions of the glyphs when laid out on the adaptated curve. |
java.awt.geom.Point2D |
getP0()
Returns the first control point. |
java.awt.geom.Point2D |
getPn()
Returns the last control point. |
java.awt.geom.Point2D |
getSpacer()
The spacer that this template match. |
int |
glyphsNotDisplayed()
Returns the number of glyphs that cannot fit on the adpated template. |
protected abstract double |
initialParameter()
|
protected abstract boolean |
isParameterValid(double l)
|
protected abstract double |
parameterMaxValue()
|
protected abstract double |
parameterMinValue()
|
void |
setPossibleEllipses(int number)
Sets the maximum number of ellipsis for this template. |
abstract void |
setSpacer(java.awt.geom.Point2D newspacer)
Instructs the template to adapt to a new spacer. |
protected int |
spaceResiduesOnAdaptedCurve(int numres,
double required_distance)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.awt.geom.Point2D entryDirection
protected java.awt.geom.Point2D exitDirection
protected java.awt.geom.Point2D[] controls
protected java.awt.geom.Point2D[] adapted
protected java.awt.geom.Point2D[] glyph_pos
protected java.awt.geom.Point2D spacer
protected int notFit
protected final int TIMEOUT_EXPIRED
protected final int FIT
protected final int TOO_MUCH_RESIDUES
protected final int UNDEFINED
| Constructor Detail |
public AbstractLoopTemplate(java.awt.geom.Point2D spacer,
java.awt.geom.Point2D entryDirection,
java.awt.geom.Point2D exitDirection,
int numpoints)
| Method Detail |
public java.awt.geom.Point2D[] getControls()
LoopTemplate
getControls in interface LoopTemplatepublic java.awt.geom.Point2D[] getAdapted()
LoopTemplate
getAdapted in interface LoopTemplatepublic java.awt.geom.Point2D[] getGlyphPositions()
LoopTemplate
getGlyphPositions in interface LoopTemplatepublic java.awt.geom.Point2D getSpacer()
LoopTemplate
getSpacer in interface LoopTemplatepublic abstract void setSpacer(java.awt.geom.Point2D newspacer)
setSpacer in interface LoopTemplatepublic java.awt.geom.Point2D getP0()
LoopTemplate
getP0 in interface LoopTemplatepublic java.awt.geom.Point2D getPn()
LoopTemplate
getPn in interface LoopTemplate
public void adapt(int numglyph,
double dist)
adapt in interface LoopTemplatepublic int glyphsNotDisplayed()
LoopTemplate
glyphsNotDisplayed in interface LoopTemplateprotected abstract boolean isParameterValid(double l)
protected abstract double adjustParameter(double l,
int fit)
protected abstract double initialParameter()
protected abstract double parameterMinValue()
protected abstract double parameterMaxValue()
protected int spaceResiduesOnAdaptedCurve(int numres,
double required_distance)
protected abstract void adaptWithParameter(double l,
java.awt.geom.Point2D[] array)
public void setPossibleEllipses(int number)
LoopTemplate
setPossibleEllipses in interface LoopTemplate
protected double distance(double x,
double y,
double last_x,
double last_y)
protected double distance(java.awt.geom.Point2D a,
java.awt.geom.Point2D b)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||