com.threerings.opengl.gui.border
Class LineBorder

java.lang.Object
  extended by com.threerings.opengl.gui.border.Border
      extended by com.threerings.opengl.gui.border.LineBorder

public class LineBorder
extends Border

Defines a border that displays a single line around the bordered component in a specified color.


Field Summary
protected  Color4f _color
           
protected  int _width
           
protected static Insets ONE_PIXEL_INSETS
           
 
Constructor Summary
LineBorder(Color4f color)
           
LineBorder(Color4f color, int width)
           
 
Method Summary
 Insets adjustInsets(Insets insets)
          Adds the supplied insets to this border's insets and returns adjusted insets.
 void render(Renderer renderer, int x, int y, int width, int height, float alpha)
          Renders this border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_color

protected Color4f _color

_width

protected int _width

ONE_PIXEL_INSETS

protected static final Insets ONE_PIXEL_INSETS
Constructor Detail

LineBorder

public LineBorder(Color4f color)

LineBorder

public LineBorder(Color4f color,
                  int width)
Method Detail

adjustInsets

public Insets adjustInsets(Insets insets)
Description copied from class: Border
Adds the supplied insets to this border's insets and returns adjusted insets.

Specified by:
adjustInsets in class Border

render

public void render(Renderer renderer,
                   int x,
                   int y,
                   int width,
                   int height,
                   float alpha)
Description copied from class: Border
Renders this border.

Overrides:
render in class Border