|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
ikbs.tools.trees.Composant
ikbs.tools.trees.Relation
public class Relation
IKBS - Editeur d'arbre de description Définition de la hierarchie des classes relation David Grosser - Mars 1997 - IREMIA, Université de la Réunion Version 1.0 Revu le 7/04/97
| Field Summary | |
|---|---|
protected static double |
angleArrow
|
protected static java.awt.Color |
backgroundColor
|
static boolean |
decalage2dPoint
|
static boolean |
doubleTrait
|
protected Noeud |
extremite
|
protected int |
forme
|
static int |
FORME_DROITE
|
static int |
FORME_ESCALIER
|
java.awt.Color |
normal_color
|
protected static int |
numRel
|
protected Noeud |
origine
|
protected int |
posLien
|
protected boolean |
selected
|
protected boolean |
showArrow
|
protected static int |
widthArrow
|
| Fields inherited from class ikbs.tools.trees.Composant |
|---|
bgColor, cible_color, dimension, heightLabel, label, labelColor, shadow_color, shadowSize, show, widthLabel, x, y |
| Constructor Summary | |
|---|---|
Relation()
|
|
Relation(Noeud noeud1,
Noeud noeud2)
|
|
Relation(Noeud noeud1,
Noeud noeud2,
java.lang.String nom)
|
|
Relation(Noeud noeud1,
Noeud noeud2,
java.lang.String nom,
java.awt.FontMetrics fm)
|
|
| Method Summary | |
|---|---|
void |
calculDimension(java.awt.FontMetrics fm)
|
Noeud |
extremite()
|
boolean |
getClicked()
L'objet est-il cliqué |
protected int |
getDecalage2dPoint()
|
boolean |
getSelected()
retourne true si l'objet est sélectionné |
int |
height()
|
java.awt.Point |
infDroit()
|
int |
infDroitX()
|
int |
infDroitY()
|
protected void |
init()
|
java.lang.String |
labelExtremite()
|
java.lang.String |
labelOrigine()
|
boolean |
lieA(Noeud unNoeud)
|
Noeud |
origine()
|
void |
paint(java.awt.Graphics g,
int xRel,
int yRel)
|
void |
paint1(java.awt.Graphics g,
int xRel,
int yRel)
Relation dessinée en forme droite |
void |
paint2(java.awt.Graphics g,
int xRel,
int yRel)
Relation dessinée en escalier |
void |
paintArrow(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Pour dessiner la flêche (x1, y1) : coordonnées du point d'origine (x2, y2) : coordonnées du point destination |
int |
posLien()
|
java.awt.Rectangle |
rect()
|
static void |
setBackgroundColor(java.awt.Color c)
|
void |
setClicked(boolean b)
L'objet est cliqué |
void |
setExtremite(Noeud unNoeud)
|
void |
setForme(int i)
|
void |
setOrigine(Noeud unNoeud)
|
void |
setPosLien(int i)
|
void |
setSelected(boolean b)
L'objet est sélectionné |
void |
setShowArrow(boolean b)
|
java.awt.Point |
supGauche()
|
int |
supGaucheX()
|
int |
supGaucheY()
|
int |
width()
|
int |
widthLabel()
|
| Methods inherited from class ikbs.tools.trees.Composant |
|---|
bgColor, dansRect, dimension, getInfo, getLabel, heightLabel, hideLabel, labelColor, paintShadow, pos, setBgColor, setDimension, setHeight, setHeightLabel, setLabel, setLabelColor, setPos, setPos, setPos, setWidth, setWidthLabel, setX, setY, showed, showLabel, sourisDans, toString, x, xd, y |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ikbs.tools.trees.Selectable |
|---|
getLabel |
| Field Detail |
|---|
public static final int FORME_ESCALIER
public static final int FORME_DROITE
public static boolean decalage2dPoint
public static boolean doubleTrait
protected static java.awt.Color backgroundColor
protected static int numRel
protected static int widthArrow
protected static double angleArrow
protected Noeud origine
protected Noeud extremite
protected int posLien
protected boolean showArrow
protected boolean selected
protected int forme
public java.awt.Color normal_color
| Constructor Detail |
|---|
public Relation()
public Relation(Noeud noeud1,
Noeud noeud2)
public Relation(Noeud noeud1,
Noeud noeud2,
java.lang.String nom)
public Relation(Noeud noeud1,
Noeud noeud2,
java.lang.String nom,
java.awt.FontMetrics fm)
| Method Detail |
|---|
protected void init()
public static void setBackgroundColor(java.awt.Color c)
public boolean getSelected()
Selectable
getSelected in interface Selectablepublic void setSelected(boolean b)
Selectable
setSelected in interface Selectablepublic boolean getClicked()
Selectable
getClicked in interface Selectablepublic void setClicked(boolean b)
Selectable
setClicked in interface Selectablepublic Noeud origine()
public Noeud extremite()
public void setOrigine(Noeud unNoeud)
public void setExtremite(Noeud unNoeud)
public java.lang.String labelOrigine()
public java.lang.String labelExtremite()
public int widthLabel()
widthLabel in class Composantpublic void setShowArrow(boolean b)
public void calculDimension(java.awt.FontMetrics fm)
public void setForme(int i)
public int posLien()
public void setPosLien(int i)
public boolean lieA(Noeud unNoeud)
public int supGaucheX()
public int supGaucheY()
public java.awt.Point supGauche()
public int infDroitX()
public int infDroitY()
public java.awt.Point infDroit()
public int width()
width in class Composantpublic int height()
height in class Composantpublic java.awt.Rectangle rect()
rect in class Composant
public void paintArrow(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
public void paint(java.awt.Graphics g,
int xRel,
int yRel)
protected int getDecalage2dPoint()
public void paint1(java.awt.Graphics g,
int xRel,
int yRel)
public void paint2(java.awt.Graphics g,
int xRel,
int yRel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||