Class LayoutGraphic

    • Constructor Detail

      • LayoutGraphic

        public LayoutGraphic​(Graphic aGraphic,
                             MapLayout aMapLayout)
        Constructor
        Parameters:
        aGraphic - Graphic
        aMapLayout - MapLayout
      • LayoutGraphic

        public LayoutGraphic​(Graphic aGraphic,
                             MapLayout aMapLayout,
                             LayoutMap aLayoutMap)
        Constructor
        Parameters:
        aGraphic - Graphic
        aMapLayout - MapLayout
        aLayoutMap - LayoutMap
    • Method Detail

      • getGraphic

        public Graphic getGraphic​()
      • setGraphic

        public void setGraphic​(Graphic graphic)
      • isTitle

        public boolean isTitle​()
        Get if is title
        Returns:
        If is title
      • setIsTitle

        public void setIsTitle​(boolean istrue)
        Set if is title
        Parameters:
        istrue - Boolean
      • isPaint

        public boolean isPaint​()
        Get if paint
        Returns:
        If paint
      • setIsPaint

        public void setIsPaint​(boolean istrue)
        Set if paint
        Parameters:
        istrue - If paint
      • setLabelText

        public void setLabelText​(java.lang.String text)
        Set label text
        Parameters:
        text - Label text
      • updateControlSize

        public void updateControlSize​()
        Update control size
      • verticeEditUpdate

        public void verticeEditUpdate​(int vIdx,
                                      double newX,
                                      double newY)
        Vertice edited update
        Parameters:
        vIdx - Vertice index
        newX - New x
        newY - New y
      • paint

        public void paint​(java.awt.Graphics2D g)
        Description copied from class: LayoutElement
        Paint method
        Specified by:
        paint in class LayoutElement
        Parameters:
        g - Graphics2D
      • paintOnLayout

        public void paintOnLayout​(java.awt.Graphics2D g,
                                  PointF pageLocation,
                                  float zoom)
        Description copied from class: LayoutElement
        Paint on layout method
        Specified by:
        paintOnLayout in class LayoutElement
        Parameters:
        g - Grahpics2D
        pageLocation - Page location
        zoom - Zoom
      • paintGraphics

        public void paintGraphics​(java.awt.Graphics2D g,
                                  PointF pageLocation,
                                  float zoom)
        Paint graphics
        Parameters:
        g - Graphics2D
        pageLocation - page location
        zoom - Zoom