Class RectangularHighlight

    • Field Detail

      • rectangle

        protected java.awt.geom.Rectangle2D rectangle
      • zoomed

        protected boolean zoomed
    • Constructor Detail

      • RectangularHighlight

        public RectangularHighlight​(java.awt.geom.Rectangle2D rectangle,
                                    boolean zoomed,
                                    java.awt.Color strokeColor,
                                    java.awt.Stroke stroke)
    • Method Detail

      • 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
      • 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
      • setRectangle

        public void setRectangle​(java.awt.geom.Rectangle2D rectangle)
      • 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