ptolemy.actor.gui
Class CheckModelSize
java.lang.Object
ptolemy.actor.gui.CheckModelSize
public class CheckModelSize
- extends java.lang.Object
Class that checks the size, zoom, and location of a model.
- Since:
- Ptolemy II 5.2
- Version:
- $Id: CheckModelSize.java 57040 2010-01-27 20:52:32Z cxh $
- Author:
- Rowland R Johnson
- Accepted Rating:
- Proposed Rating:
Method Summary |
private static java.lang.String |
_checkSize(NamedObj top,
boolean ignoreMissingVergilSize)
Check the size and centering of the model. |
static java.lang.String |
checkModelSize(Configuration configuration,
java.lang.String[] args)
Check the size, zoom and location of the models named
by the args. |
static void |
main(java.lang.String[] args)
Check the size, zoom and location of the models named
by the args. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckModelSize
public CheckModelSize()
checkModelSize
public static java.lang.String checkModelSize(Configuration configuration,
java.lang.String[] args)
throws java.lang.Exception
- Check the size, zoom and location of the models named
by the args.
- Parameters:
configuration
- The optional configuration to check.args
- An array of Strings naming the models to be checked.
- Returns:
- HTML that describes possible probelms with the models.
- Throws:
java.lang.Exception
- If there is a problem reading a model.
main
public static void main(java.lang.String[] args)
- Check the size, zoom and location of the models named
by the args.
- Parameters:
args
- An array of Strings naming the models to be checked.
- Throws:
java.lang.Exception
- If there is a problem reading a model.
_checkSize
private static java.lang.String _checkSize(NamedObj top,
boolean ignoreMissingVergilSize)
- Check the size and centering of the model.
- Parameters:
top
- The NamedObj to check
- Returns:
- A string describing size problems associated with the model.