Documentation of 'kcl.waterloo.graphics.GJGridInterface' Java class
GJGridInterface
kcl.waterloo.graphics

Interface GJGridInterface

  • All Known Implementing Classes:
    GCGridContainer


    public interface GJGridInterface
    GJGridInterface defines methods that need to be implemented by a subclass if it is to work as a grid interface for GJAbstractGraphs. A GJGridInterface allows multiple GJAbstractGraphContainers to be arranged in grids. The interface defines methods used in the GJAbstractGraph class to communicate with the grid class. By default, the GJGridInterface reference in GJAbstractGraph is set to null. GJGridInterface classes need to call setGridInterface on the graph when it is added to the grid. Only implemented in GCGrid at present.

    This interface, and related classes in the kcl.waterloo.swing package, are under development. They are likely to change in the future.

    • Method Detail

      • getLocation

        double[] getLocation(java.awt.Component c)
        Returns the x,y location of the index
        Parameters:
        idx - index
        Returns:
        an int[] containing the x,y location
      • getMousePositionIndicator

        javax.swing.JLabel getMousePositionIndicator()
        Returns a reference to the JLabel used to output the mouse position
        Returns:
        a JLabel
      • getGridIndicator

        javax.swing.JLabel getGridIndicator()
        Returns a reference to the JLabel used to output the grid position
        Returns:
        a JLabel

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.