And now is it right?
@Override
public Visual getRepresentation() {
Picture picture = null;
if (selectedIndex!=-1){
Bounds headerBounds = getHeaderBounds(selectedIndex);
BufferedImage bImg = new
BufferedImage(headerBounds.width,
headerBounds.height, BufferedImage.TYPE_INT_RGB);
Graphics2D graphics = bImg.createGraphics();
graphics.clipRect(headerBounds.x, headerBounds.y,
headerBounds.width,
headerBounds.height);
graphics.translate(headerBounds.x, headerBounds.y);
paint(graphics);
graphics.drawImage(bImg, headerBounds.x, 0, null);
graphics.dispose();
picture = new Picture(bImg);
}
return picture;
}
-----
Thank you!
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Replace-column-in-table-view-tp3375080p3382502.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.