Class Image
-
-
Field Summary
Fields Modifier and Type Field Description private PolyImageimageprivate PolyColorbackgroundColorprivate PolyColorboarderColorprivate FloatboarderWidthprivate final FloatArrayradiiprivate Vec2sizeprivate final Vec2visibleSizeprivate final transient Drawableparentprivate Vec2atprivate BooleanrawResizeprivate transient StringsimpleNameprivate final LinkedList<Drawable>childrenprivate final transient PolyUIpolyUIprivate final Rendererrendererprivate final Booleanoperatingprivate PolyColor.Animatedcolorprivate final transient Colors.Palettepaletteprivate Floatxprivate Floatyprivate Floatwidthprivate Floatheightprivate FloatvisibleWidthprivate FloatvisibleHeightprivate final Booleanscrollingprivate transient BooleanneedsRedrawprivate transient BooleanacceptsInputprivate final transient Booleaninitializedprivate transient ByteinputStateprivate transient Booleanrendersprivate Booleanenabledprivate Doublerotationprivate DoubleskewXprivate DoubleskewYprivate FloatscaleXprivate FloatscaleYprivate Floatalphaprivate final Alignalignmentprivate final Booleanfocusable
-
Method Summary
Modifier and Type Method Description final PolyImagegetImage()final UnitsetImage(PolyImage image)final PolyColorgetBackgroundColor()final UnitsetBackgroundColor(PolyColor backgroundColor)Unitrescale(Float scaleX, Float scaleY, Boolean position)Method that is called when the physical size of the total window area changes. Booleansetup(PolyUI polyUI)give this a PolyUI reference. -
Methods inherited from class org.polyfrost.polyui.component.impl.Block
getBoarderColor, getBoarderWidth, getRadii, setBoarderColor, setBoarderWidth -
Methods inherited from class org.polyfrost.polyui.component.Drawable
accept, addChild, addChild, addEventHandler, addEventhandler, addOperation, addOperation, calculateSize, canBeRemoved, clipChildren, clone, debugDraw, draw, forwardEventsTo, get, get, get, getAcceptsInput, getAlignment, getAlpha, getAt, getChildren, getColor, getEnabled, getFocusable, getHeight, getInitialized, getInputState, getNeedsRedraw, getOperating, getPalette, getParent, getPolyUI, getRawResize, getRenderer, getRenders, getRotation, getScaleX, getScaleY, getScrolling, getSimpleName, getSize, getSkewX, getSkewY, getVisibleHeight, getVisibleSize, getVisibleWidth, getWidth, getX, getY, intersects, isInside, recalculate, recalculateChildren, removeChild, removeChild, removeOperation, reset, resetScroll, set, set, setAcceptsInput, setAlpha, setAt, setColor, setEnabled, setHeight, setInputState, setNeedsRedraw, setPalette, setRawResize, setRenders, setRotation, setScaleX, setScaleY, setSimpleName, setSize, setSkewX, setSkewY, setVisibleHeight, setVisibleWidth, setWidth, setX, setY, toString, tryMakeScrolling -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBackgroundColor
final PolyColor getBackgroundColor()
-
setBackgroundColor
final Unit setBackgroundColor(PolyColor backgroundColor)
-
rescale
Unit rescale(Float scaleX, Float scaleY, Boolean position)
Method that is called when the physical size of the total window area changes.
- Parameters:
position- weather to scale the at property of this drawable as well.
-
setup
Boolean setup(PolyUI polyUI)
give this a PolyUI reference.
You can also use this method to do some calculations (such as text widths) that are not dependent on other sizes, or operations that require access to PolyUI things, like PolyUI.settings or PolyUI.translator
this method is called once, and only once.
-
-
-
-