|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvenndiagrams.Venn3DiagramPanel.Potato
A potato is a circle containing some informations relative to the filterings. The 3 potatoes don't have the same role. That is the reason why they have a number. The other fields are graphic.
Field Summary | |
private double |
alpha
|
private double |
beta
|
private int |
num
|
private int |
radius
|
private int |
textX
|
private int |
textY
|
private int |
x
|
private int |
y
|
Constructor Summary | |
Venn3DiagramPanel.Potato(int num)
|
Method Summary | |
private String |
getNbLinesAndSetColor(Graphics g,
int index)
Gets the result of the filtering (number of selected lines) and sets the proper color consequently |
boolean |
isInPotato(int x,
int y)
Decides whether the point (x, y) is in the circle |
void |
paint(Graphics g)
Draws the num-th potato with the results inside. |
void |
setGraphicParameters(int x,
int y,
int radius,
int textx,
int texty)
Sets the graphic parameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int num
private int x
private int y
private int radius
private int textX
private int textY
private double alpha
private double beta
Constructor Detail |
public Venn3DiagramPanel.Potato(int num)
Method Detail |
private String getNbLinesAndSetColor(Graphics g, int index)
g
- the graphic areaindex
- the column index
public boolean isInPotato(int x, int y)
public void paint(Graphics g)
JComponent.paint(java.awt.Graphics)
public void setGraphicParameters(int x, int y, int radius, int textx, int texty)
radius
- the radius of the potato
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |