ajouter tag sur polyline - Java - Programmation
Marsh Posté le 12-03-2011 à 09:30:56
Bonjour, J'ai créé le polyline suivant : int arraySize = 3; int[] xPoints = new int[arraySize]; int[] yPoints = new int[arraySize]; xPoints[0] = (int) GraphicalEditor.x - 12; yPoints[0] = (int) GraphicalEditor.y; xPoints[1] = (int) GraphicalEditor.x - 12; yPoints[1] = (int) GraphicalEditor.y + 50; xPoints[2] = (int) GraphicalEditor.x - 62; yPoints[2] = (int) GraphicalEditor.y + 50; g.drawPolyline(xPoints, yPoints, xPoints.length); xPoints[0] = (int) GraphicalEditor.x + 12; yPoints[0] = (int) GraphicalEditor.y; xPoints[1] = (int) GraphicalEditor.x + 12; yPoints[1] = (int) GraphicalEditor.y + 50; xPoints[2] = (int) GraphicalEditor.x + 62; yPoints[2] = (int) GraphicalEditor.y + 50; g.drawPolyline(xPoints, yPoints, xPoints.length); xPoints[0] = (int) GraphicalEditor.x - 62; yPoints[0] = (int) GraphicalEditor.y + 75; xPoints[1] = (int) GraphicalEditor.x + 62; yPoints[1] = (int) GraphicalEditor.y + 75; g.drawPolyline(xPoints, yPoints, 2); Et je voudrais y ajouter un tag extensionnal mais je ne sais point comment faire, si quelqu'un pouvait m'aider... Merci d'avance
Make sure you enter the(*)required information where indicate.HTML code is not allowed
Marsh Posté le 12-03-2011 à 09:30:56
Bonjour,
J'ai créé le polyline suivant :
int arraySize = 3;
int[] xPoints = new int[arraySize];
int[] yPoints = new int[arraySize];
xPoints[0] = (int) GraphicalEditor.x - 12;
yPoints[0] = (int) GraphicalEditor.y;
xPoints[1] = (int) GraphicalEditor.x - 12;
yPoints[1] = (int) GraphicalEditor.y + 50;
xPoints[2] = (int) GraphicalEditor.x - 62;
yPoints[2] = (int) GraphicalEditor.y + 50;
g.drawPolyline(xPoints, yPoints, xPoints.length);
xPoints[0] = (int) GraphicalEditor.x + 12;
yPoints[0] = (int) GraphicalEditor.y;
xPoints[1] = (int) GraphicalEditor.x + 12;
yPoints[1] = (int) GraphicalEditor.y + 50;
xPoints[2] = (int) GraphicalEditor.x + 62;
yPoints[2] = (int) GraphicalEditor.y + 50;
g.drawPolyline(xPoints, yPoints, xPoints.length);
xPoints[0] = (int) GraphicalEditor.x - 62;
yPoints[0] = (int) GraphicalEditor.y + 75;
xPoints[1] = (int) GraphicalEditor.x + 62;
yPoints[1] = (int) GraphicalEditor.y + 75;
g.drawPolyline(xPoints, yPoints, 2);
Et je voudrais y ajouter un tag extensionnal mais je ne sais point comment faire, si quelqu'un pouvait m'aider...
Merci d'avance