|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.gui.curves.CurvesFactory
public class CurvesFactory
This class is used to create the curves of the game by modifying the Graphics of the composant
Constructor Summary | |
---|---|
CurvesFactory()
Creates a new instance of CurvesFactory |
Method Summary | |
---|---|
void |
drawAxes(java.awt.Graphics g,
int minX,
int maxX,
int minY,
int maxY)
This method insert the axes in the graph |
void |
drawCurves(java.awt.Graphics g,
java.util.ArrayList playerListList,
int minPoint,
int maxPoint,
int minTurn,
int maxTurn,
java.util.Vector colorsVector)
This method creates the curves by affecting the Graphics The four last parameters define the display parameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurvesFactory()
Method Detail |
---|
public void drawAxes(java.awt.Graphics g, int minX, int maxX, int minY, int maxY)
minX
- The min value in xmaxX
- The max value in xminY
- The min value in ymaxY
- The max value in xg
- The graphicspublic void drawCurves(java.awt.Graphics g, java.util.ArrayList playerListList, int minPoint, int maxPoint, int minTurn, int maxTurn, java.util.Vector colorsVector)
colorsVector
- The colors vector to use to draw curvesg
- The graphics of the componentplayerListList
- the list of the players in each turnminPoint
- The min point to consider (minY)maxPoint
- The max point to consider (maxY)minTurn
- The min turn to consider (minX)maxTurn
- The max turn to consider (maxX)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |