Hello, I like to implement a Layer where I override the method of
ProjectionPainter:
public void renderDataForProjection(Projection proj, Graphics g).
I like have a control of draw over layer.
My class is:
public class InformationLayer extends Layer implements ProjectionPainter {
/**
*
*/
private static final long serialVersionUID = 1L;
_at_Override
public void renderDataForProjection(Projection proj, Graphics g) {
if(proj != null && g != null) {
Graphics2D gg = (Graphics2D)g;
LatLonPoint center = proj.getCenter();
Point p = proj.forward(center);
gg.drawOval(p.x, p.y, 10, 10);
}
}
_at_Override
public void projectionChanged(ProjectionEvent e) {
repaint();
}
}
but, never run this method.
Please tell me how can I to use this interface.
-------------------------------------
Eliecer Osorio Verdugo
Gerencia Técnica
------------------------------------
Sisdef Ltda.
Fono: 56 32 2810777
Fax : 56 32 2811190
-------------------------------------
e-mail: eosorio_at_sisdef.cl
-------------------------------------
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Oct 12 2007 - 09:48:23 EDT