Package mindustry.ui

Class BorderImage

java.lang.Object
arc.scene.Element
arc.scene.ui.Image
mindustry.ui.BorderImage

public class BorderImage extends arc.scene.ui.Image
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    arc.graphics.Color
     
    float
     
    float
     

    Fields inherited from class arc.scene.ui.Image

    imageHeight, imageWidth, imageX, imageY

    Fields inherited from class arc.scene.Element

    color, cullable, fillParent, height, name, originX, originY, parent, parentAlpha, rotation, scaleX, scaleY, touchable, touchablility, translation, userObject, visibility, visible, width, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    BorderImage(arc.graphics.g2d.TextureRegion region, float thick)
     
    BorderImage(arc.graphics.Texture texture)
     
    BorderImage(arc.graphics.Texture texture, float thick)
     
    BorderImage(arc.scene.style.Drawable region)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    border(arc.graphics.Color color)
     
    void
     

    Methods inherited from class arc.scene.ui.Image

    getDrawable, getImageHeight, getImageWidth, getImageX, getImageY, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getRegion, layout, setAlign, setDrawable, setDrawable, setScaling

    Methods inherited from class arc.scene.Element

    act, actions, addAction, addCaptureListener, addListener, change, changed, clear, clearActions, clearListeners, clicked, clicked, clicked, clicked, clipBegin, clipBegin, clipEnd, dragged, exited, fire, fireClick, getActions, getCaptureListeners, getHeight, getListeners, getMaxHeight, getMaxWidth, getRight, getRotation, getScene, getTop, getWidth, getX, getY, getZIndex, hasActions, hasKeyboard, hasMouse, hasParent, hasScroll, hit, hovered, invalidate, invalidateHierarchy, isAscendantOf, isDescendantOf, isDescendantOf, isTouchable, keepInStage, keyDown, keyDown, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, needsLayout, notify, pack, parentToLocalCoordinates, released, remove, removeAction, removeCaptureListener, removeListener, requestKeyboard, requestScroll, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, scrolled, setBounds, setColor, setColor, setFillParent, setHeight, setLayoutEnabled, setOrigin, setOrigin, setPosition, setPosition, setRotation, setRotationOrigin, setScale, setScale, setScene, setSize, setSize, setTranslation, setWidth, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, tapped, toBack, toFront, toString, touchable, update, updateVisibility, validate, visible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • thickness

      public float thickness
    • pad

      public float pad
    • borderColor

      public arc.graphics.Color borderColor
  • Constructor Details

    • BorderImage

      public BorderImage()
    • BorderImage

      public BorderImage(arc.graphics.Texture texture)
    • BorderImage

      public BorderImage(arc.graphics.Texture texture, float thick)
    • BorderImage

      public BorderImage(arc.graphics.g2d.TextureRegion region, float thick)
    • BorderImage

      public BorderImage(arc.scene.style.Drawable region)
  • Method Details

    • border

      public BorderImage border(arc.graphics.Color color)
    • draw

      public void draw()
      Overrides:
      draw in class arc.scene.ui.Image