Class ArcDialFrame

    • Constructor Detail

      • ArcDialFrame

        public ArcDialFrame()
        Creates a new instance of ArcDialFrame that spans 180 degrees.
      • ArcDialFrame

        public ArcDialFrame​(double startAngle,
                            double extent)
        Creates a new instance of ArcDialFrame that spans the arc specified.
        Parameters:
        startAngle - the startAngle (in degrees).
        extent - the extent of the arc (in degrees, counter-clockwise).
    • Method Detail

      • getStroke

        public java.awt.Stroke getStroke()
        Returns the stroke.
        Returns:
        The stroke (never null).
        See Also:
        setStroke(Stroke)
      • setStroke

        public void setStroke​(java.awt.Stroke stroke)
        Sets the stroke and sends a DialLayerChangeEvent to all registered listeners.
        Parameters:
        stroke - the stroke (null not permitted).
        See Also:
        getStroke()
      • getWindow

        public java.awt.Shape getWindow​(java.awt.geom.Rectangle2D frame)
        Returns the shape for the window for this dial. Some dial layers will request that their drawing be clipped within this window.
        Specified by:
        getWindow in interface DialFrame
        Parameters:
        frame - the reference frame (null not permitted).
        Returns:
        The shape of the dial's window.
      • getOuterWindow

        protected java.awt.Shape getOuterWindow​(java.awt.geom.Rectangle2D frame)
        Returns the outer window.
        Parameters:
        frame - the frame.
        Returns:
        The outer window.
      • draw

        public void draw​(java.awt.Graphics2D g2,
                         DialPlot plot,
                         java.awt.geom.Rectangle2D frame,
                         java.awt.geom.Rectangle2D view)
        Draws the frame.
        Specified by:
        draw in interface DialLayer
        Parameters:
        g2 - the graphics target.
        plot - the plot.
        frame - the dial's reference frame.
        view - the dial's view rectangle.
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this instance for equality with an arbitrary object.
        Overrides:
        equals in class AbstractDialLayer
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a clone of this instance.
        Specified by:
        clone in interface org.jfree.util.PublicCloneable
        Overrides:
        clone in class AbstractDialLayer
        Returns:
        A clone.
        Throws:
        java.lang.CloneNotSupportedException - if any attribute of this instance cannot be cloned.