Package net.mcreator.element.parts.gui
Class SizedComponent
java.lang.Object
net.mcreator.element.parts.gui.GUIComponent
net.mcreator.element.parts.gui.SizedComponent
- All Implemented Interfaces:
Comparable<GUIComponent>
This class is used to represent a GUI component that can have size defined by the user
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.element.parts.gui.GUIComponent
GUIComponent.AnchorPoint, GUIComponent.GSONAdapter, GUIComponent.Unknown
-
Field Summary
Fields inherited from class net.mcreator.element.parts.gui.GUIComponent
anchorPoint, locked, uuid, x, y
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
final int
final int
Methods inherited from class net.mcreator.element.parts.gui.GUIComponent
compareTo, equals, getAnchorPoint, getName, getWeight, getX, getY, gx, gy, hashCode, isSizeKnown, paintComponent, toString
-
Field Details
-
width
public int width -
height
public int height
-
-
Constructor Details
-
SizedComponent
public SizedComponent(int x, int y, int width, int height)
-
-
Method Details
-
canChangeHeight
public boolean canChangeHeight() -
getWidth
- Specified by:
getWidth
in classGUIComponent
-
getHeight
- Specified by:
getHeight
in classGUIComponent
-