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  int _bottom
           
protected  com.jme.renderer.ColorRGBA _color
           
protected  int _left
           
protected  int _right
           
protected  int _top
           
protected  int _width
           
protected static Insets ONE_PIXEL_INSETS
           
 
Constructor Summary
LineBorder(com.jme.renderer.ColorRGBA color)
           
LineBorder(com.jme.renderer.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(com.jme.renderer.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 com.jme.renderer.ColorRGBA _color

_width

protected int _width

_left

protected int _left

_top

protected int _top

_right

protected int _right

_bottom

protected int _bottom

ONE_PIXEL_INSETS

protected static final Insets ONE_PIXEL_INSETS
Constructor Detail

LineBorder

public LineBorder(com.jme.renderer.ColorRGBA color)

LineBorder

public LineBorder(com.jme.renderer.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(com.jme.renderer.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 © 2011 Michael Bayne. All Rights Reserved.