package org.saturnclient.ui.elements; import org.saturnclient.config.Theme; import org.saturnclient.ui.Element; import org.saturnclient.ui.ElementContext; import org.saturnclient.ui.RenderScope; /** * A faint line filling the element: horizontal by default, or vertical when * given a width of 1 and a height. */ public class Divider extends Element { public Divider(int width) { this.width = width; this.height = 1; } @Override public void render(RenderScope renderScope, ElementContext ctx) { renderScope.drawRectangle(0, 0, width, height, Theme.getBorder()); } }