: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
On-line Demo
Further Plans
Docs
API
FAQ
Download
Latest version

Home > GDP > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.lw.gdp
Class DgnBorder

java.lang.Object
  |
  +--org.zaval.lw.LwView
        |
        +--org.zaval.lw.gdp.DgnBorder
All Implemented Interfaces:
Validationable

public class DgnBorder
extends LwView

This is special border view implementation. The border renders special square areas where the component can be resized. The view is used by designer controller to create designer container component. Take a look at the image below where the button component uses the view as its border:


Fields inherited from class org.zaval.lw.LwView
MOSAIC, ORIGINAL, STRETCH
 
Constructor Summary
DgnBorder()
          Constructs a new border view.
 
Method Summary
 java.awt.Color getBorderColor()
          Gets the border color.
 int getBottom()
           
 int getGap()
          Gets the gap.
 int getLeft()
           
 int getRight()
           
 int getTop()
           
 void paint(java.awt.Graphics g, int x, int y, int w, int h, Layoutable d)
           
 void setBorderColor(java.awt.Color c)
          Sets the specified border color.
 void setGap(int g)
          Sets the given gap.
 
Methods inherited from class org.zaval.lw.LwView
calcPreferredSize, getPreferredSize, getType, invalidate, isValid, ownerChanged, paint, recalc, setType, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DgnBorder

public DgnBorder()
Constructs a new border view.
Method Detail

getGap

public int getGap()
Gets the gap. The gap specifies indents from top, left, right and bottom sides.
Returns:
a gap.

setGap

public void setGap(int g)
Sets the given gap. The gap specifies indents from top, left, right and bottom sides.
Parameters:
g - the specified gap.

getTop

public int getTop()
Overrides:
getTop in class LwView

getLeft

public int getLeft()
Overrides:
getLeft in class LwView

getBottom

public int getBottom()
Overrides:
getBottom in class LwView

getRight

public int getRight()
Overrides:
getRight in class LwView

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y,
                  int w,
                  int h,
                  Layoutable d)
Overrides:
paint in class LwView

setBorderColor

public void setBorderColor(java.awt.Color c)
Sets the specified border color.
Parameters:
c - the specified color.

getBorderColor

public java.awt.Color getBorderColor()
Gets the border color.
Returns:
a border color.


: up