类 LayoutGraphic


  • public class LayoutGraphic
    extends LayoutElement
    作者:
    yaqiang
    • 构造器详细资料

      • LayoutGraphic

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

        public LayoutGraphic​(Graphic aGraphic,
                             MapLayout aMapLayout,
                             LayoutMap aLayoutMap)
        Constructor
        参数:
        aGraphic - Graphic
        aMapLayout - MapLayout
        aLayoutMap - LayoutMap
    • 方法详细资料

      • getGraphic

        public Graphic getGraphic()
      • setGraphic

        public void setGraphic​(Graphic graphic)
      • isTitle

        public boolean isTitle()
        Get if is title
        返回:
        If is title
      • setIsTitle

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

        public boolean isPaint()
        Get if paint
        返回:
        If paint
      • setIsPaint

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

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

        public void updateControlSize()
        Update control size
      • verticeEditUpdate

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

        public void paint​(java.awt.Graphics2D g)
        从类复制的说明: LayoutElement
        Paint method
        指定者:
        paint 在类中 LayoutElement
        参数:
        g - Graphics2D
      • paintOnLayout

        public void paintOnLayout​(java.awt.Graphics2D g,
                                  PointF pageLocation,
                                  float zoom)
        从类复制的说明: LayoutElement
        Paint on layout method
        指定者:
        paintOnLayout 在类中 LayoutElement
        参数:
        g - Grahpics2D
        pageLocation - Page location
        zoom - Zoom
      • paintGraphics

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