类 LayoutElement

    • 构造器详细资料

      • LayoutElement

        public LayoutElement()
    • 方法详细资料

      • fireLocationChangedEvent

        public void fireLocationChangedEvent()
      • removeSizeChangedListener

        public void removeSizeChangedListener​(ISizeChangedListener listener)
      • fireSizeChangedEvent

        public void fireSizeChangedEvent()
      • isVisible

        public boolean isVisible()
        Get if visible
        返回:
        Boolean
      • setVisible

        public void setVisible​(boolean istrue)
        Set if visible
        参数:
        istrue - Boolean
      • getLeft

        public int getLeft()
        Get left
        返回:
        Left
      • setLeft

        public void setLeft​(int left)
        Set left
        参数:
        left -
      • getTop

        public int getTop()
        Get top
        返回:
        Top
      • setTop

        public void setTop​(int top)
        Set top
        参数:
        top - Top
      • getWidth

        public int getWidth()
        Get width
        返回:
        Width
      • setWidth

        public void setWidth​(int width)
        Set width
        参数:
        width - Width
      • getHeight

        public int getHeight()
        Get height
        返回:
        Height
      • setHeight

        public void setHeight​(int height)
        Set height
        参数:
        height - Height
      • getRight

        public int getRight()
        Get right
        返回:
        Right
      • getBottom

        public int getBottom()
        Get bottom
        返回:
        Bottom
      • getBounds

        public java.awt.Rectangle getBounds()
        Get bounds rectangle
        返回:
        Bounds rectangle
      • getElementType

        public ElementType getElementType()
        Get element type
        返回:
        The element type
      • setElementType

        public void setElementType​(ElementType type)
        Set element type
        参数:
        type - Element type
      • getForeColor

        public java.awt.Color getForeColor()
        Get foreground color
        返回:
        Foreground color
      • setForeColor

        public void setForeColor​(java.awt.Color color)
        Set foreground color
        参数:
        color - Foreground color
      • getBackColor

        public java.awt.Color getBackColor()
        Get background color
        返回:
        Background color
      • setBackColor

        public void setBackColor​(java.awt.Color color)
        Set background color
        参数:
        color - Background color
      • isSelected

        public boolean isSelected()
        Get if is selected
        返回:
        Boolean
      • setSelected

        public void setSelected​(boolean istrue)
        Set if is selected
        参数:
        istrue - Boolean
      • getResizeAbility

        public ResizeAbility getResizeAbility()
        Get resize ability
        返回:
        Resize ability
      • setResizeAbility

        public void setResizeAbility​(ResizeAbility ra)
        Set resize ability
        参数:
        ra - Resize ability
      • isDrawBackColor

        public boolean isDrawBackColor()
        Get is draw backcolor
        返回:
        Boolean
      • setDrawBackColor

        public void setDrawBackColor​(boolean value)
        Set is draw backcolor
        参数:
        value - Boolean
      • paint

        public abstract void paint​(java.awt.Graphics2D g)
        Paint method
        参数:
        g - Graphics2D
      • paintOnLayout

        public abstract void paintOnLayout​(java.awt.Graphics2D g,
                                           PointF pageLocation,
                                           float zoom)
        Paint on layout method
        参数:
        g - Grahpics2D
        pageLocation - Page location
        zoom - Zoom
      • moveUpdate

        public abstract void moveUpdate()
        Move update method
      • resizeUpdate

        public abstract void resizeUpdate()
        Resize update method
      • pageToScreen

        public PointF pageToScreen​(float pageX,
                                   float pageY,
                                   PointF pageLocation,
                                   float zoom)
        Page to screen
        参数:
        pageX - Page X
        pageY - Page Y
        pageLocation - Page location
        zoom - Zoom
        返回:
        Screen point