Documentation of 'org.jhotdraw.draw.locator.RelativeLocator' Java class
RelativeLocator
org.jhotdraw.draw.locator

Class RelativeLocator

    • Constructor Detail

      • RelativeLocator

        public RelativeLocator()
        Creates a new instance.
      • RelativeLocator

        public RelativeLocator(double relativeX,
                               double relativeY)
        Creates a new instance.
      • RelativeLocator

        public RelativeLocator(double relativeX,
                               double relativeY,
                               boolean isTransform)
        Parameters:
        relativeX - x-position relative to bounds expressed as a value between 0 and 1.
        relativeY - y-position relative to bounds expressed as a value between 0 and 1.
        isTransform - Set this to true, if the locator shall honor the TRANSFORM attribute of the Figure.
    • Method Detail

      • locate

        public java.awt.geom.Point2D.Double locate(Figure owner)
        Description copied from interface: Locator
        Locates a position on the provided figure.
        Returns:
        a point on the figure.
      • east

        public static Locator east()
        Non-transforming East.
      • east

        public static Locator east(boolean isTransform)
        East.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • north

        public static Locator north()
        Non-transforming North.
      • north

        public static Locator north(boolean isTransform)
        North.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • west

        public static Locator west()
        Non-transforming West.
      • west

        public static Locator west(boolean isTransform)
        West.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • northEast

        public static Locator northEast()
        Non-transforming North east.
      • northEast

        public static Locator northEast(boolean isTransform)
        Norht East.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • northWest

        public static Locator northWest()
        Non-transforming North west.
      • northWest

        public static Locator northWest(boolean isTransform)
        North West.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • south

        public static Locator south()
        Non-transforming South.
      • south

        public static Locator south(boolean isTransform)
        South.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • southEast

        public static Locator southEast()
        Non-transforming South east.
      • southEast

        public static Locator southEast(boolean isTransform)
        South East.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • southWest

        public static Locator southWest()
        Non-transforming South west.
      • southWest

        public static Locator southWest(boolean isTransform)
        South West.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • center

        public static Locator center()
        Non-transforming Center.
      • center

        public static Locator center(boolean isTransform)
        Center.
        Parameters:
        isTransform - Set this to true, if RelativeLocator shall honour the AttributesKey.TRANSFORM attribute of the Figure.
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.