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

Class GJGraph

  • All Implemented Interfaces:
    java.awt.event.ComponentListener, java.awt.event.ContainerListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.Scrollable, GJAxisSupportInterface, GJGraphInterface, GJLayerInterface<GJGraphInterface>, GJLinkableInterface, GJObservableInterface


    public final class GJGraph
    extends GJAbstractGraph
    Concrete class extending the GJAbstractGraph class. While GJGraph instances can be independent of their containers, they will normally be added to a GJGraphContainer instance. The GJGraph class supports adding of plots, provides objects to transform the data held in those plots as well as coordinating the painting of grids and internal axes. Axes shown outside of the viewable area of the graph are painted by the GraphContainer if it has one. These components are properties of the graph, but are members of the Swing hierarchy of the container.
    See Also:
    Serialized Form
    • Constructor Detail

      • GJGraph

        public GJGraph()

        Creates a new graph display. The following properties are automatically set:

        • view: -1.0 to +1.0 on both axis
        • origin: At (0, 0)
        • grid: Spacing of 0.2 between major lines; minor lines count is 4
    • Method Detail

      • createInstance

        public static GJGraph createInstance()
      • paint

        public void paint(java.awt.Graphics g)
        Description copied from class: JXPanel
        Overridden paint method to take into account the alpha setting.
        Overrides:
        paint in class JXPanel
        Parameters:
        g - the Graphics context in which to paint
      • paintComponent

        public final void paintComponent(java.awt.Graphics g)
        Overridden to provide Painter support. It will call backgroundPainter.paint() if it is not null, else it will call super.paintComponent().
        Overrides:
        paintComponent in class GJBasicPanel
        Parameters:
        g -
      • paintGrid

        public void paintGrid()

DMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.