|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl | +--edu.berkeley.guir.lib.satin.objects.GObText
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Jun 19 1999, JH Created class - SATIN-v2.1-1.0.0, Aug 11 2000, JH Touched for SATIN release
Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants |
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D |
Fields inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject |
GESTUREINTRP_CLPROPERTY, INKINTRP_CLPROPERTY, STYLE_CLPROPERTY, VIEW_CLPROPERTY |
Constructor Summary | |
GObText()
|
|
GObText(String newStr)
|
Method Summary | |
void |
append(String newStr)
|
void |
clear()
Clears out the text. |
Object |
clone()
My clone sleeps alone... |
protected void |
clone(GObText gob)
For clone chaining purposes. |
protected void |
defaultRender(SatinGraphics g)
The default method for rendering. |
int |
getNumCols()
Get the number of columns in this text graphical object. |
int |
getNumRows()
Get the number of rows in this text graphical object. |
void |
insert(String newStr,
int pos)
|
void |
replace(String newStr,
int start,
int end)
For example, if the text is "the elephantz", then calling replace("cat", 4, 12) will make it "the catz", and calling replace("cat", 4, 13) will make it "the cat". |
void |
set(String newStr)
|
void |
setNumCols(int newNumCols)
Set the number of columns in this text graphical object. |
void |
setNumRows(int newNumRows)
Set the number of rows in this text graphical object. |
String |
toDebugString()
Some debugging info. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GObText()
public GObText(String newStr)
Method Detail |
public void set(String newStr)
public void append(String newStr)
public void insert(String newStr, int pos)
public void replace(String newStr, int start, int end)
newStr
- is the String to insert.start
- is the zero-based index to start replacing from (inclusive).end
- is the zero-based index to stop at (exclusive).public void clear()
public int getNumRows()
public void setNumRows(int newNumRows)
newNumRows
- is the number of rows to set to.public int getNumCols()
public void setNumCols(int newNumCols)
newNumCols
- is the number of columns to set to.protected void defaultRender(SatinGraphics g)
GraphicalObjectImpl
defaultRender
in class GraphicalObjectImpl
public Object clone()
GraphicalObjectImpl
clone
in class GraphicalObjectImpl
protected void clone(GObText gob)
GraphicalObjectImpl.clone(GraphicalObjectImpl)
public String toDebugString()
GraphicalObjectImpl
Do not call method toString() in any implementation of toDebugString(). Method toString() calls toDebugString().
toDebugString
in class GraphicalObjectImpl
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |