Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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.
-
-