Class PointLineChart

    • Field Detail

      • points

        protected Vector points
        Contains all points that are currently painted on this chart
      • showLines

        public boolean showLines
        Flag to indicate whether the lines connecting points must be painted
      • showPoints

        public boolean showPoints
        Flag to indicate whether the points must be painted
      • showValue

        public boolean showValue
        Flag to indicate whether is to show the selected value
      • pointR

        public int pointR
        The radious of each point (in pixels)
      • lineThickness

        public int lineThickness
        The line thickness.
      • selectedAxis

        public int selectedAxis
        The axis that was selected.
      • postEventOnAxisSelection

        public boolean postEventOnAxisSelection
        Flag indicating if its to post an event when the user selects an axis.
    • Constructor Detail

      • PointLineChart

        public PointLineChart()
    • Method Detail

      • onPaint

        public void onPaint​(Graphics g)
        Description copied from class: Control
        Called to draw the control. When this method is called, the graphics object passed has been translated into the coordinate system of the control and the area behind the control has already been painted.
        Overrides:
        onPaint in class Control
        Parameters:
        g - the graphics object for drawing
        See Also:
        Graphics
      • onEvent

        public void onEvent​(Event e)
        Description copied from class: Control
        Called to process key, pen, control and other posted events.
        Overrides:
        onEvent in class Control
        Parameters:
        e - the event to process
        See Also:
        Event, KeyEvent, PenEvent