com.miginfocom.ashape
Interface Visibility

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
SizeRangeVisibility

public interface Visibility
extends java.io.Serializable

An interface to define if an AShape should be visible or not. Also prvides for two static implementations, one for not visible: FALSE and one for visible: TRUE.
Implement with a concrete implementation to make more dynamic resize behaviour, depending of the bounds or some property for instance.


Field Summary
static Visibility FALSE
           
static Visibility TRUE
           
 
Method Summary
 boolean getVisiblity(AShape shape)
          Returns if something with the specified size should be visible.
 

Field Detail

FALSE

static final Visibility FALSE

TRUE

static final Visibility TRUE
Method Detail

getVisiblity

boolean getVisiblity(AShape shape)
Returns if something with the specified size should be visible.

Parameters:
shape - The shape that is decided if it should be visible or not. The bounds should be set since this is probably one of the thing that the implelentation will use to decide.
Returns:
If the shape should be visible or not.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.