com.jmex.bui.border
Class LineBorder

java.lang.Object
  extended by com.jmex.bui.border.BBorder
      extended by com.jmex.bui.border.LineBorder

public class LineBorder
extends BBorder

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


Field Summary
protected  ColorRGBA _color
           
protected  int _width
           
protected static Insets ONE_PIXEL_INSETS
           
 
Constructor Summary
LineBorder(ColorRGBA color)
           
LineBorder(ColorRGBA 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 com.jmex.bui.border.BBorder
wasAdded, wasRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_color

protected ColorRGBA _color

_width

protected int _width

ONE_PIXEL_INSETS

protected static final Insets ONE_PIXEL_INSETS
Constructor Detail

LineBorder

public LineBorder(ColorRGBA color)

LineBorder

public LineBorder(ColorRGBA color,
                  int width)
Method Detail

adjustInsets

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

Specified by:
adjustInsets in class BBorder

render

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

Overrides:
render in class BBorder


Copyright © 2008 Michael Bayne. All Rights Reserved.