Class Visual

    • Field Detail

      • hasChanged

        public boolean hasChanged
      • PADDING_X

        public int PADDING_X
      • PADDING_Y

        public int PADDING_Y
      • defColor

        public static Color defColor
      • defColorFront

        public static Color defColorFront
      • defColorBack

        public static Color defColorBack
      • defColorFrame

        public static Color defColorFrame
      • defColorText

        public static Color defColorText
      • defStroke

        public static int defStroke
      • defFont

        public static String defFont
      • defFontSize

        public static int defFontSize
    • Constructor Detail

      • Visual

        public Visual()
    • Method Detail

      • setGuide

        public void setGuide​(Guide g)
      • getTarget

        public Region getTarget()
      • setScale

        public Visual setScale​(float scale)
      • setColors

        public Visual setColors​(Color all,
                                Color front,
                                Color back,
                                Color frame,
                                Color text)
        set a Java Color for the component
        not all components have all color options
        Parameters:
        all - sets the color for all options (which have to be null in this case)
        front - sets the foreground color
        back - sets the background color
        frame - sets the color of the frame
        text - sets the color of the text
        Returns:
        the component itself for dot-chaining
      • setColors

        public Visual setColors​(int[] front,
                                int[] back,
                                int[] frame,
                                int[] text)
        mainly for Jython layer: colors given as (r, g, b) integer array
        Parameters:
        front - sets the foreground color
        back - sets the background color
        frame - sets the color of the frame
        text - sets the color of the text
        Returns:
        the component itself for dot-chaining
      • setColor

        public Visual setColor​(Color color)
        set the front and back color
        Parameters:
        color -
        Returns:
        the component itself
      • setColor

        public Visual setColor​(int r,
                               int g,
                               int b)
        set the front and back color as (r, g, b) integer array
        Returns:
        the component itself
      • setTextColor

        public Visual setTextColor​(Color color)
        set the text color
        Parameters:
        color -
        Returns:
        the component itself
      • setTextColor

        public Visual setTextColor​(int r,
                                   int g,
                                   int b)
        set text color as (r, g, b) integer array
        Returns:
        the component itself
      • getColorHex

        public static String getColorHex​(Color col)
      • setStroke

        public Visual setStroke​(int stk)
      • setFont

        public Visual setFont​(String font,
                              int fontSize)
      • setFontSize

        public Visual setFontSize​(int i)
      • setMaxWidth

        public Visual setMaxWidth​(int w)
      • getText

        public String getText()
      • setAutoLayoutEnabled

        public void setAutoLayoutEnabled​(boolean autoLayoutEnabled)
      • isAutoLayoutEnabled

        public boolean isAutoLayoutEnabled()
      • setAutoResizeEnabled

        public void setAutoResizeEnabled​(boolean autoResizeEnabled)
      • isAutoResizeEnabled

        public boolean isAutoResizeEnabled()
      • setAutoMoveEnabled

        public void setAutoMoveEnabled​(boolean autoMoveEnabled)
      • isAutoMoveEnabled

        public boolean isAutoMoveEnabled()
      • setAutoVisibilityEnabled

        public void setAutoVisibilityEnabled​(boolean autoVisibilityEnabled)
      • isAutoVisibilityEnabled

        public boolean isAutoVisibilityEnabled()
      • getActualBounds

        public Rectangle getActualBounds()
      • getRegion

        public Region getRegion()
      • setActualBounds

        public void setActualBounds​(Rectangle actualBounds)
      • getCenter

        public Point getCenter()
      • getActualSize

        public Dimension getActualSize()
      • setActualSize

        public void setActualSize​(int width,
                                  int height)
      • setActualSize

        public void setActualSize​(Dimension actualSize)
      • getActualWidth

        public int getActualWidth()
      • getActualHeight

        public int getActualHeight()
      • getActualLocation

        public Point getActualLocation()
      • offsetLocation

        public void offsetLocation​(int x,
                                   int y)
      • setActualLocation

        public void setActualLocation​(Point location)
      • setActualLocation

        public void setActualLocation​(int x,
                                      int y)
      • setMargin

        public void setMargin​(int top,
                              int left,
                              int bottom,
                              int right)
      • setOffset

        public void setOffset​(int offsetx,
                              int offsety)
      • setZoomLevel

        public void setZoomLevel​(float zoomLevel)
      • setMovable

        public void setMovable​(boolean movable)
      • setOpacity

        public void setOpacity​(float opacity)
      • updateComponent

        public void updateComponent()
      • paintPlain

        public void paintPlain​(Graphics g)
      • setShadowDefault

        public void setShadowDefault()
      • setShadow

        public void setShadow​(int shadowSize,
                              int shadowOffset)
      • addAnimation

        public void addAnimation​(org.sikuli.guide.NewAnimator anim)
      • addMoveAnimation

        public void addMoveAnimation​(Point source,
                                     Point destination)
      • addResizeAnimation

        public void addResizeAnimation​(Dimension currentSize,
                                       Dimension targetSize)
      • addCircleAnimation

        public void addCircleAnimation​(Point origin,
                                       float radius)
      • addFadeinAnimation

        public void addFadeinAnimation()
      • addFadeoutAnimation

        public void addFadeoutAnimation()
      • addSlideAnimation

        public void addSlideAnimation​(Point destination,
                                      Visual.Layout side)
      • startAnimation

        public void startAnimation()
      • stopAnimation

        public void stopAnimation()
      • createSlidingAnimator

        public Animator createSlidingAnimator​(int offset_x,
                                              int offset_y)
      • createMoveAnimator

        public Animator createMoveAnimator​(int dest_x,
                                           int dest_y)
      • resizeTo

        public void resizeTo​(Dimension targetSize)
      • moveTo

        public void moveTo​(Point targetLocation)
      • moveTo

        public void moveTo​(Point targetLocation,
                           org.sikuli.guide.AnimationListener listener)
      • popin

        public void popin()
      • popout

        public void popout()
      • setEntranceAnimation

        public void setEntranceAnimation​(Animator anim)
      • setEmphasisAnimation

        public void setEmphasisAnimation​(Animator anim)
      • addAnimationListener

        public void addAnimationListener​(org.sikuli.guide.AnimationListener listener)
      • animationCompleted

        public void animationCompleted()
      • left

        public Visual left​(int x)
      • right

        public Visual right()
      • right

        public Visual right​(int x)
      • above

        public Visual above()
      • above

        public Visual above​(int y)
      • below

        public Visual below()
      • below

        public Visual below​(int y)
      • setTarget

        public <RCPS> Visual setTarget​(RCPS target)
      • setLocationRelativeToComponent

        public void setLocationRelativeToComponent​(Visual comp,
                                                   Visual.Layout side)
      • setLocationRelativeToComponent

        public void setLocationRelativeToComponent​(Visual comp,
                                                   int offsetx,
                                                   int offsety)
      • setLocationRelativeToComponent

        public void setLocationRelativeToComponent​(Visual comp,
                                                   float relativeX,
                                                   float relativeY)
      • setLocationRelativeToComponent

        public void setLocationRelativeToComponent​(Visual leader)
      • setLocationRelativeToPoint

        public void setLocationRelativeToPoint​(Point point,
                                               Visual.Layout side)
      • setHorizontalAlignmentWithRegion

        public void setHorizontalAlignmentWithRegion​(Region region,
                                                     float f)
      • setVerticalAlignmentWithRegion

        public void setVerticalAlignmentWithRegion​(Region region,
                                                   float f)
      • removeFromLeader

        public void removeFromLeader()
      • addFollower

        public void addFollower​(Visual sklComp)
      • setVisible

        public void setVisible​(boolean visible)
        Overrides:
        setVisible in class JComponent
      • getLeader

        public Visual getLeader()
      • removeFollower

        public void removeFollower​(Visual comp)
      • getFollowerBounds

        public Rectangle getFollowerBounds()
      • removeFrom

        public void removeFrom​(Container container)