org.foray.mif
Class MifTextRect

java.lang.Object
  extended by org.foray.mif.MifToken
      extended by org.foray.mif.MifTextRect

public class MifTextRect
extends MifToken

A MIF Text Rectangle.


Constructor Summary
MifTextRect(int numCols, int id)
          Constructor.
 
Method Summary
 int getTextRectID()
          Returns the ID for this text rectangle.
 String mifContent()
          Returns the content of this token as a String.
 void setTextRectProp(int left, int top, int width, int height)
          Sets the properties for this text rectangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MifTextRect

public MifTextRect(int numCols,
                   int id)
Constructor.

Parameters:
numCols - The number of columns in this text rectangle.
id - The ID for this rectangle.
Method Detail

getTextRectID

public int getTextRectID()
Returns the ID for this text rectangle.

Returns:
The ID for this text rectangle.

setTextRectProp

public void setTextRectProp(int left,
                            int top,
                            int width,
                            int height)
Sets the properties for this text rectangle.

Parameters:
left - The x coordinate.
top - The y coordinate.
width - The width.
height - The height.

mifContent

public String mifContent()
Description copied from class: MifToken
Returns the content of this token as a String.

Returns:
The content of this token as a String.


Copyright © 2017. All rights reserved.