net.sf.colossus.guiutil
Interface INonRecticleJComponent
public interface INonRecticleJComponent
Describes the contract between Non rectangular Jcomponents and Swing layout managers that are aware of non-recticle JComponents.
Method Summary |
java.awt.Rectangle |
getBaseRectangle()
|
void |
resizeBaseRectangle(java.awt.Rectangle newBaseRectangle)
resizes the base rectangle -- this triggers the non-rectangleJComponent to change it's
preferred size & position to contain the new Rectangle. |
getBaseRectangle
java.awt.Rectangle getBaseRectangle()
- Returns:
- The largest Rectangle contained by the non-rectangular component.
resizeBaseRectangle
void resizeBaseRectangle(java.awt.Rectangle newBaseRectangle)
- resizes the base rectangle -- this triggers the non-rectangleJComponent to change it's
preferred size & position to contain the new Rectangle.