From 14036f306092140b593ae88963937b61ec3aa933 Mon Sep 17 00:00:00 2001 From: mdb Date: Mon, 14 Feb 2005 02:59:06 +0000 Subject: [PATCH] Added isLaidOut(). git-svn-id: https://samskivert.googlecode.com/svn/trunk@1590 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/src/java/com/samskivert/swing/Label.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/samskivert/src/java/com/samskivert/swing/Label.java b/projects/samskivert/src/java/com/samskivert/swing/Label.java index 86a918f9..2a3cec3b 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/Label.java +++ b/projects/samskivert/src/java/com/samskivert/swing/Label.java @@ -276,6 +276,14 @@ public class Label implements SwingConstants, LabelStyleConstants return _size; } + /** + * Returns true if this label has been laid out, false if not. + */ + public boolean isLaidOut () + { + return (_layouts != null); + } + /** * Calls {@link #layout(Graphics2D)} with the graphics context for the * given component.