Package 

Class SegmentClipper

  • All Implemented Interfaces:
    org.osmdroid.util.PointAccepter

    
    public class SegmentClipper
     implements PointAccepter
                        

    A tool to clip segments

    • Method Summary

      Modifier and Type Method Description
      void set(long pXMin, long pYMin, long pXMax, long pYMax, PointAccepter pPointAccepter, IntegerAccepter pIntegerAccepter, boolean pPathMode)
      void set(long pXMin, long pYMin, long pXMax, long pYMax, PointAccepter pPointAccepter, boolean pPathMode)
      void init()
      void add(long pX, long pY)
      void end()
      void clip(long pX0, long pY0, long pX1, long pY1) Clip a segment into the clip area
      boolean isInClipArea(long pX, long pY) Check if a point is in the clip area
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • set

         void set(long pXMin, long pYMin, long pXMax, long pYMax, PointAccepter pPointAccepter, boolean pPathMode)
      • add

         void add(long pX, long pY)
      • end

         void end()
      • clip

         void clip(long pX0, long pY0, long pX1, long pY1)

        Clip a segment into the clip area

      • isInClipArea

         boolean isInClipArea(long pX, long pY)

        Check if a point is in the clip area