Class Sectors3DPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Sectors3DPanel extends JPanel

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

    • Sectors3DPanel

      public Sectors3DPanel(Vector<Object> s3d, String[] classNames)
      Builds a new Sectors3D Panel to show results of 3-class models
      Parameters:
      s3d - results vector
      classNames - array with class names
  • Method Details

    • paint

      public void paint(Graphics g)
      Overrides default paint method to draw graph
      Overrides:
      paint in class JComponent
      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