Class PaintFrame
- java.lang.Object
-
- com.epicbot.api.shared.util.paint.frame.PaintFrame
-
public class PaintFrame extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PaintFrame()
Create a frame with no header.PaintFrame(java.lang.String title)
Create a frame with a header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLine(Seperator seperator)
void
addLine(java.lang.String name, java.lang.Object value)
void
addLine(java.lang.String name, java.util.function.Function<APIContext,java.lang.Object> value)
void
addPart(FramePart line)
protected Dimension2D
determineFrameBounds(java.awt.Graphics2D g2d, APIContext ctx)
java.awt.geom.Rectangle2D
draw(java.awt.Graphics2D g2d, double x, double y, APIContext ctx)
protected void
drawFrame(java.awt.Graphics2D g2d, double x, double y, Dimension2D frameSize)
protected double
drawHeader(java.awt.Graphics2D g2d, double x, double y, Dimension2D frameSize, APIContext ctx)
protected void
drawParts(java.awt.Graphics2D g2d, double x, double y, Dimension2D frameSize, APIContext ctx)
int
getColumnValueSpacing()
java.awt.Insets
getFramePadding()
FrameHeader
getHeader()
java.awt.geom.Rectangle2D
getLastBounds()
void
setColumnValueSpacing(int columnValueSpacing)
void
setFramePadding(java.awt.Insets framePadding)
FrameHeader
setTitle(java.lang.String title)
-
-
-
Method Detail
-
setTitle
public FrameHeader setTitle(java.lang.String title)
-
addLine
public void addLine(Seperator seperator)
-
addLine
public void addLine(java.lang.String name, java.lang.Object value)
-
addLine
public void addLine(java.lang.String name, java.util.function.Function<APIContext,java.lang.Object> value)
-
addPart
public void addPart(FramePart line)
-
draw
public java.awt.geom.Rectangle2D draw(java.awt.Graphics2D g2d, double x, double y, APIContext ctx)
-
drawHeader
protected double drawHeader(java.awt.Graphics2D g2d, double x, double y, Dimension2D frameSize, APIContext ctx)
-
drawFrame
protected void drawFrame(java.awt.Graphics2D g2d, double x, double y, Dimension2D frameSize)
-
drawParts
protected void drawParts(java.awt.Graphics2D g2d, double x, double y, Dimension2D frameSize, APIContext ctx)
-
determineFrameBounds
protected Dimension2D determineFrameBounds(java.awt.Graphics2D g2d, APIContext ctx)
-
getHeader
public FrameHeader getHeader()
-
getLastBounds
public java.awt.geom.Rectangle2D getLastBounds()
-
setColumnValueSpacing
public void setColumnValueSpacing(int columnValueSpacing)
-
getColumnValueSpacing
public int getColumnValueSpacing()
-
setFramePadding
public void setFramePadding(java.awt.Insets framePadding)
-
getFramePadding
public java.awt.Insets getFramePadding()
-
-