Class ScaleControls.AnchorHL

  • All Implemented Interfaces:
    IHighlight
    Enclosing class:
    ScaleControls

    protected class ScaleControls.AnchorHL
    extends java.lang.Object
    implements IHighlight
    A highlight that displays a little cross where the logical resize anchor is placed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.geom.Rectangle2D getRectangle()
      The outer bounding box of the highlight
      com.google.common.base.Optional<java.lang.String> getTooltip()
      Return the tooltip for this highlight, if applicable
      boolean isZoomed()
      If this is true, the highlight's rectangle needs to be adjusted for zoom level in order to be accurate in 2d space.
      void paint​(DesignPanel panel, java.awt.Graphics2D g)
      Paint this highlight
      • Methods inherited from class java.lang.Object

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

      • getTooltip

        public com.google.common.base.Optional<java.lang.String> getTooltip()
        Description copied from interface: IHighlight
        Return the tooltip for this highlight, if applicable
        Specified by:
        getTooltip in interface IHighlight
      • getRectangle

        public java.awt.geom.Rectangle2D getRectangle()
        Description copied from interface: IHighlight
        The outer bounding box of the highlight
        Specified by:
        getRectangle in interface IHighlight
      • isZoomed

        public boolean isZoomed()
        Description copied from interface: IHighlight
        If this is true, the highlight's rectangle needs to be adjusted for zoom level in order to be accurate in 2d space. Otherwise the rectangle is already in 2d space
        Specified by:
        isZoomed in interface IHighlight
      • paint

        public void paint​(DesignPanel panel,
                          java.awt.Graphics2D g)
        Description copied from interface: IHighlight
        Paint this highlight
        Specified by:
        paint in interface IHighlight