org.zaval.awt.gdp
Class JLibraryAdapter


java.lang.Object

  |

  +--org.zaval.awt.gdp.LibraryAdapter

        |

        +--org.zaval.awt.gdp.JLibraryAdapter


public class JLibraryAdapter
extends LibraryAdapter

This a library adapter implementation that is supposed to be used with Java Swing library.


Constructor Summary
JLibraryAdapter()
           
 
Method Summary
 void drawRectOnComponent(java.awt.Component c, int x, int y, int w, int h, java.awt.Color col)
           Draws the specified rectangle for the component using the given color.
 java.awt.Container getRootContainer(java.awt.Component target)
           Returns a top-level parent component for the specified child component.
 java.awt.Container makeDgnContainer()
           Makes and returns the special container component that supposed to be used with DgnController class as a designer container.
 
Methods inherited from class org.zaval.awt.gdp.LibraryAdapter
getLibraryAdapter, setLibraryAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JLibraryAdapter


public JLibraryAdapter()
Method Detail

drawRectOnComponent


public void drawRectOnComponent(java.awt.Component c,
                                int x,
                                int y,
                                int w,
                                int h,
                                java.awt.Color col)
Draws the specified rectangle for the component using the given color. This method allows to render rectangle over the specified area and the area can be out of the component bounds.
Overrides:
drawRectOnComponent in class LibraryAdapter
Parameters:
c - the specified component.
x - the x coordinate of the left-top corner of the rendered rectangle.
y - the y coordinate of the left-top corner of the rendered rectangle.
w - the width of the rendered rectangle.
h - the height of the rendered rectangle.
col - the color of the rendered rectangle.

makeDgnContainer


public java.awt.Container makeDgnContainer()
Makes and returns the special container component that supposed to be used with DgnController class as a designer container.
Overrides:
makeDgnContainer in class LibraryAdapter
Returns:
a designer container.

getRootContainer


public java.awt.Container getRootContainer(java.awt.Component target)
Returns a top-level parent component for the specified child component.
Overrides:
getRootContainer in class LibraryAdapter
Parameters:
target - the specified child component.
Returns:
a top-level parent container.


Copyright © Zaval Creative Engineering Group, 2000-2005
http://www.zaval.org