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:
|
Constructor Summary |
DgnBorder()
Constructs a new border view. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DgnBorder
public DgnBorder()
- Constructs a new border view.
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.
|