use of java.awt.Polygon in project airavata by apache.
the class EndForEachNodeGUI method calculatePositions.
private void calculatePositions() {
this.polygon = new Polygon();
Point position = getPosition();
this.polygon.addPoint(position.x, position.y);
this.polygon.addPoint(position.x, position.y + this.dimension.height + this.headHeight / 2);
this.polygon.addPoint(position.x + this.dimension.width, position.y + this.dimension.height);
this.polygon.addPoint(position.x + this.dimension.width, position.y + this.headHeight / 2);
DrawUtils.setupRoundedGeneralPath(polygon, getComponentShape());
}
use of java.awt.Polygon in project airavata by apache.
the class EndForEachNodeGUI method createHeader.
private Polygon createHeader(Point position) {
Polygon head = new Polygon();
head.addPoint(position.x, position.y);
head.addPoint(position.x, position.y + this.headHeight);
head.addPoint(position.x + this.dimension.width, position.y + this.headHeight);
head.addPoint(position.x + this.dimension.width, position.y + this.headHeight / 2);
return head;
}
use of java.awt.Polygon in project airavata by apache.
the class EndifNodeGUI method createHeader.
private Polygon createHeader(Point position) {
Polygon head = new Polygon();
head.addPoint(position.x, position.y);
head.addPoint(position.x, position.y + this.headHeight);
head.addPoint(position.x + this.dimension.width, position.y + this.headHeight);
head.addPoint(position.x + this.dimension.width, position.y + this.headHeight / 2);
return head;
}
use of java.awt.Polygon in project airavata by apache.
the class ForEachNodeGUI method calculatePositions.
private void calculatePositions() {
// XXX Avoid instantiating a new polygon each time.
this.polygon = new Polygon();
Point position = getPosition();
this.polygon.addPoint(position.x, position.y + this.headHeight / 2);
this.polygon.addPoint(position.x, position.y + this.dimension.height);
this.polygon.addPoint(position.x + this.dimension.width, position.y + this.dimension.height + this.headHeight - this.headHeight / 2);
this.polygon.addPoint(position.x + this.dimension.width, position.y);
DrawUtils.setupRoundedGeneralPath(polygon, getComponentShape());
}
use of java.awt.Polygon in project airavata by apache.
the class ForEachNodeGUI method createHeader.
private Polygon createHeader(Point position) {
Polygon head = new Polygon();
head.addPoint(position.x, position.y + this.headHeight / 2);
head.addPoint(position.x, position.y + this.headHeight);
head.addPoint(position.x + this.dimension.width, position.y + this.headHeight);
head.addPoint(position.x + this.dimension.width, position.y);
return head;
}
Aggregations