|
Á¦ ¸ñ |
Â÷Æ®¿µ¿ª¿¡¼ ÁÂÇ¥¿µ¿ª °ª °¡Á®¿À±â |
|
ÀÛ¼ºÀÚ |
À¯±¤¿ë |
ÀÛ¼ºÀÏ |
2012-01-17 |
Á¶È¸¼ö |
1307 ȸ |
|
÷ºÎÆÄÀÏ |
÷ºÎµÈ ÆÄÀϾøÀ½.
|
|
¾È³çÇϼ¼¿ä.. ¾Æ·¡¿Í °°ÀÌ Â÷Æ®¿¡ ·£´õ·¯ Â÷Æ®¸¦ ±×¸®Áö ¾Ê°í µ¥ÄÚ·¹À̼ÇÀ¸·Î ¿µ¿ª¸¸ Ç¥½ÃÇѰæ¿ì Â÷Æ® ¿µ¿ª( chart.getChartArea )¿¡ ¸¶¿ì½º ¸®½º³Ê¸¦ Á¤ÀÇÇÏ¿© Â÷Æ® ¿µ¿ª¿¡¼ ¸¶¿ì½º¸¦ À̵¿Çϰųª Ŭ¸¯½Ã ¸¶¿ì½º°¡ À§Ä¡ÇÑ Â÷Æ®¿µ¿ªÀÇ x, y ÁÂÇ¥°ªÀ» ¾Ë¼ö ÀÖ³ª¿ä..? ¾Æ´Ï¸é ¸¶¿ì½º°¡ À§Ä¡ÇÑ µ¥ÄÚ·¹ÀÌ¼Ç Á¤º¸¸¦ ±¸ÇÒ¼ö ÀÖ´ÂÁö ¾Ë°í ½Í½À´Ï´Ù..
// Â÷Æ®¿¡ µ¥ÄÚ·¹ÀÌ¼Ç ¿µ¿ª Ç¥½Ã IlvDataWindow dataWindow = null; dataWindow = new IlvDataWindow(fromValue, toValue, chart.getYAxis(0).getDataMin(), chart.getYAxis(0).getDataMax()); IlvDataInterval inter = new IlvDataInterval(fromValue, toValue); IlvDataIndicator weInd = new IlvDataIndicator(0 , dataWindow, itmeName); weInd.setStyle(new IlvStyle(Color.white, color )); chart.addDecoration(weInd);
// Â÷Æ® ¿µ¿ª¿¡¼ ¸¶¿ì½º À̵¿¿¡ µû¸¥ Â÷Æ® Á¤º¸ ±¸Çϱâ chart.getChartArea().addMouseListener(this); chart.getChartArea().addMouseMotionListener(this);
public void mouseMoved(MouseEvent e) { chartArea = (IlvChart.Area)e.getSource(); System.out.println("¸¶¿ì½º ¹«ºê À̺¥Æ® ½ÇÇà ==> "+e.getX()+" / "+e.getY()); // ¿©±â¼ ¸¶¿ì½º°¡ À§Ä¡ÇÑ Â÷Æ®¿µ¿ªÀÇ ÁÂÇ¥³ª µ¥ÄÚ·¹ÀÌ¼Ç Á¤º¸¸¦ ¾Ë°í ½Í½À´Ï´Ù. }
¹Ù»Ú½Ã°ÚÁö¸¸ ºü¸¥ ´äº¯ ºÎʵ叮°Ú½À´Ï´Ù.. ¼ö°íÇϼ¼¿ä.. |
|
|
|