Added clearTargetDimens();
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1310 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Label.java,v 1.33 2003/11/15 02:14:01 mdb Exp $
|
// $Id: Label.java,v 1.34 2003/11/15 03:05:15 mdb Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2002 Michael Bayne
|
// Copyright (C) 2002 Michael Bayne
|
||||||
@@ -236,6 +236,15 @@ public class Label implements SwingConstants, LabelStyleConstants
|
|||||||
_constraints.height = targetHeight;
|
_constraints.height = targetHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears out previously configured target dimensions for this label.
|
||||||
|
*/
|
||||||
|
public void clearTargetDimens ()
|
||||||
|
{
|
||||||
|
_constraints.width = 0;
|
||||||
|
_constraints.height = 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the number of lines used by this label.
|
* Returns the number of lines used by this label.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user