Class ControlCurve

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.ControlCurve
Direct Known Subclasses:
NatCubic

public class ControlCurve extends Object
  • Field Details

    • pts

      protected Polygon pts
    • result

      protected Polygon result
    • withPoints

      protected boolean withPoints
    • selection

      protected int selection
    • f

      static Font f
    • EPSILON

      static final int EPSILON
      See Also:
  • Constructor Details

    • ControlCurve

      public ControlCurve()
    • ControlCurve

      public ControlCurve(Polygon p)
  • Method Details

    • getSourcePolygon

      public Polygon getSourcePolygon()
    • setSourcePolygon

      public void setSourcePolygon(Polygon pts)
    • calculateResult

      public Polygon calculateResult()
      to be overwritten
    • calculateAndSaveResult

      public void calculateAndSaveResult()
    • paint

      public void paint(Graphics g)
      paint this curve into g.
    • selectPoint

      public int selectPoint(int x, int y)
      return index of control point near to (x,y) or -1 if nothing near
    • sqr

      static int sqr(int x)
    • getResult

      public Polygon getResult()
    • resetResult

      public void resetResult()
    • addPoint

      public int addPoint(int x, int y)
      add a control point, return index of new control point
    • setPoint

      public void setPoint(int x, int y)
      set selected control point
    • setPoint

      public void setPoint(int index, int x, int y)
      set selected control point
    • removePoint

      public void removePoint(int index)
      remove selected control point
    • removePoint

      public void removePoint()
      remove selected control point
    • isWithPoints

      public boolean isWithPoints()
    • setWithPoints

      public void setWithPoints(boolean withPoints)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setSelection

      void setSelection(int selection)
      for testing purposes
      Parameters:
      selection -