Class MapTip


  • public class MapTip
    extends java.lang.Object
    Displays a one line tip that contains a short description of a feature in hover.
    • Field Detail

      • padding

        protected int padding
        Visual design: Shape: rectangle Border thickness: hairline Border color: #9BA2B0 Background Gradient: #C1CCD7 to #FFFFFF Alpha: 90% Text: Font-family: Tahoma Font-size: 11px Font Weight: Normal Color: #383A47
      • minimumWidth

        protected int minimumWidth
      • minimumHeight

        protected int minimumHeight
      • preferredWidth

        protected int preferredWidth
      • preferredHeight

        protected int preferredHeight
    • Constructor Detail

      • MapTip

        public MapTip()
    • Method Detail

      • calculateTextLength

        protected double calculateTextLength​(java.awt.Graphics2D g)
      • render

        public long render​(java.awt.Graphics2D g,
                           java.awt.geom.Point2D topLeftCorner)
      • renderTipShapeAndText

        protected void renderTipShapeAndText()
      • renderTipShadow

        protected void renderTipShadow()
      • getText

        public java.lang.String getText()
      • setText

        public void setText​(java.lang.String text)
      • getFont

        public java.awt.Font getFont()
      • setFont

        public void setFont​(java.awt.Font font)
      • isRounded

        public boolean isRounded()
      • setRounded

        public void setRounded​(boolean rounded)
      • isDraggable

        public boolean isDraggable()
      • setDraggable

        public void setDraggable​(boolean draggable)
        Sets the flag to indicate if this map tip can be dragged around the map.
        Parameters:
        draggable -
      • isShadow

        public boolean isShadow()
      • setShadow

        public void setShadow​(boolean shadow)
      • isBorderless

        public boolean isBorderless()
      • setBorderless

        public void setBorderless​(boolean borderless)
      • isNeverShrink

        public boolean isNeverShrink()
      • setNeverShrink

        public void setNeverShrink​(boolean neverShrink)
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()