|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.orsay.lri.varna.models.annotations.TextAnnotation
public class TextAnnotation
The annotated text model
Field Summary | |
---|---|
private Object |
_ancrage
|
private double |
_angle
|
private Color |
_color
|
private Font |
_font
|
private String |
_texte
|
private int |
_typeAncrage
|
static int |
BASE
if the annoted text is fixed to a base; |
static Color |
DEFAULTCOLOR
default text color |
static Font |
DEFAULTFONT
default text font |
static int |
HELIX
if the annoted text is fixed to a helix; |
static int |
LOOP
if the annoted text is fixed to a loop; |
static int |
POSITION
if the annoted text is located by a static position |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
TextAnnotation(String texte)
creates an annoted text on a VARNAPanel with the specified text |
|
TextAnnotation(String texte,
ArrayList<ModeleBase> listeBase,
int type)
creates an annoted text on a VARNAPanel with the specified text fixed to a helix (if type is HELIX) or to a loop (if type is LOOP) |
|
TextAnnotation(String texte,
double x,
double y)
/** creates an annoted text on a VARNAPanel with the specified text and is static position |
|
TextAnnotation(String texte,
ModeleBase mb)
creates an annoted text on a VARNAPanel with the specified text fixed to a base |
|
TextAnnotation(TextAnnotation textAnnotation)
creates an annoted text from another one |
Method Summary | |
---|---|
private Point2D.Double |
calculLoop()
|
private Point2D.Double |
calculLoopHelix()
|
TextAnnotation |
clone()
clone a TextAnnotation |
void |
copy(TextAnnotation textAnnotation)
copy a textAnnotation |
private ArrayList<ModeleBase> |
extractedArrayListModeleBaseFromAncrage()
|
Object |
getAncrage()
|
double |
getAngleInDegres()
|
double |
getAngleInRadians()
|
Point2D.Double |
getCenterPosition()
|
Color |
getColor()
|
Font |
getFont()
|
String |
getHelixDescription()
|
String |
getLoopDescription()
|
String |
getTexte()
|
int |
getType()
|
void |
setAncrage(ArrayList<ModeleBase> list,
int type)
|
void |
setAncrage(double x,
double y)
|
void |
setAncrage(ModeleBase mb)
|
void |
setAngleInDegres(double _angle)
|
void |
setAngleInRadians(double _angle)
|
void |
setColor(Color color)
|
void |
setFont(Font _font)
|
void |
setTexte(String _texte)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final int POSITION
public static final int BASE
public static final int HELIX
public static final int LOOP
public static final Color DEFAULTCOLOR
public static final Font DEFAULTFONT
private String _texte
private Font _font
private Object _ancrage
private int _typeAncrage
private Color _color
private double _angle
Constructor Detail |
---|
public TextAnnotation(String texte)
texte
- Textual content of the annotationpublic TextAnnotation(String texte, double x, double y)
texte
- x
- y
- public TextAnnotation(String texte, ModeleBase mb)
texte
- mb
- public TextAnnotation(String texte, ArrayList<ModeleBase> listeBase, int type) throws Exception
texte
- listeBase
- type
-
Exception
public TextAnnotation(TextAnnotation textAnnotation)
textAnnotation
- Method Detail |
---|
public String getTexte()
public void setTexte(String _texte)
public Font getFont()
public void setFont(Font _font)
public Object getAncrage()
public void setAncrage(ModeleBase mb)
public void setAncrage(double x, double y)
public void setAncrage(ArrayList<ModeleBase> list, int type) throws Exception
Exception
public int getType()
public Color getColor()
public void setColor(Color color)
public String getHelixDescription()
public String getLoopDescription()
public String toString()
toString
in class Object
public Point2D.Double getCenterPosition()
private Point2D.Double calculLoop()
private Point2D.Double calculLoopHelix()
private ArrayList<ModeleBase> extractedArrayListModeleBaseFromAncrage()
public TextAnnotation clone()
clone
in class Object
public void copy(TextAnnotation textAnnotation)
textAnnotation
- public double getAngleInDegres()
public double getAngleInRadians()
public void setAngleInDegres(double _angle)
public void setAngleInRadians(double _angle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |