if (e.getClickCount() == 2) {
renderFlameButton_actionPerformed(null);
}
else if (e.getClickCount() == 1) {
Flame flame = getCurrFlame();
Layer layer = getCurrLayer();
if (flame != null && flamePanel != null) {
XForm xForm = flamePanel.mouseClicked(e.getX(), e.getY());
if (xForm != null || flamePanel.getConfig().getMouseDragOperation() == MouseDragOperation.GRADIENT) {
for (int i = 0; i < layer.getXForms().size(); i++) {
if (xForm == layer.getXForms().get(i)) {
afterTriangleSelected(xForm, i);
return;
}
}
for (int i = 0; i < layer.getFinalXForms().size(); i++) {
if (xForm == layer.getFinalXForms().get(i)) {
int row = layer.getXForms().size() + i;
afterTriangleSelected(xForm, row);
return;
}
}
if (flamePanel.isRedrawAfterMouseClick()) {