Class RMRadialAxisPicker

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.inductiveautomation.rm.tool.RMRadialAxisPicker
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class RMRadialAxisPicker extends JComponent
RadialAxis Picker.
See Also:
  • Field Details

  • Constructor Details

    • RMRadialAxisPicker

      public RMRadialAxisPicker()
  • Method Details

    • setGradient

      public void setGradient(RMRadialGradientFill g)
    • getGradient

      public RMRadialGradientFill getGradient()
    • getStartPoint

      public Point2D getStartPoint()
      Returns the starting point for gradient, defined as point in unit square where the first color stop is drawn.
    • getEndPoint

      public Point2D getEndPoint()
      Returns the ending point for the gradient, defined as a point in the unit square where a circle centered at _startPoint and with the color of the last color stop, passes through.
    • getBoundsInside

      public Rectangle getBoundsInside()
      Surely this exists somewhere else?
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • mousePressed

      public void mousePressed(MouseEvent e)
    • mouseDragged

      public void mouseDragged(MouseEvent e)
    • mouseReleased

      public void mouseReleased(MouseEvent e)
    • getBackgroundTexture

      public TexturePaint getBackgroundTexture()
      Creates & returns a texture to be used for the background of transparent gradients