Class Sectors3DGraph

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class Sectors3DGraph extends JabaGraph implements MouseListener

Title: Sectors 3D Panel

Description: This panel is used to show saturation sectors on 3-class models.

This was heavily modified by Bertoli Marco to allow smart label positioning and skipping if too many labels must be shown on the image. Now it allows resizing too.

Author:
Bertoli Marco, Zanzottera Andrea Date: 8-feb-2006 Time: 11.42.37
See Also:
  • Constructor Details

    • Sectors3DGraph

      public Sectors3DGraph(JabaModel data)
      Builds a new Sectors3D Panel to show results of 3-class models
      Parameters:
      data - the Jaba model with the results vector
  • Method Details

    • paint

      public void paint(Graphics g)
      Overrides default paint method to draw graph
      Overrides:
      paint in class JabaGraph
      Parameters:
      g - graphic object. Must be an instance of Graphics2D
    • getCoordinates

      protected String getCoordinates(int x, int y)
      This method will calculate mouse position in beta coordinates
      Parameters:
      x - mouse position x coordinate
      y - mouse position y coordinate
      Returns:
      string with mouse position in beta coordinates or null if mouse is out of graph
    • mouseClicked

      public void mouseClicked(MouseEvent ev)
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent arg0)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent arg0)
      Specified by:
      mouseExited in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent arg0)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent arg0)
      Specified by:
      mouseReleased in interface MouseListener