|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.shapes.MiText
| Field Summary |
| Constructor Summary | |
MiText()
|
|
MiText(double x,
double y,
java.lang.String str)
|
|
MiText(java.lang.String str)
|
|
| Method Summary | |
void |
calcMinimumSize(MiSize size)
Gets the minimum size of this MiPart. |
void |
calcPreferredSize(MiSize size)
Gets the preferred size of this MiPart. |
int |
convertLocationToPosition(MiPoint pt)
|
void |
copy(MiPart source)
Copies the given MiPart. |
void |
doRotate(MiPoint center,
double radians)
Rotates this MiPart the given number of radians about the given point. |
double |
getBaselineY()
|
MiBounds |
getBoundsAtDrawnScale(MiRenderer renderer)
|
int |
getCursorPosition()
|
char |
getEchoCharacter()
|
int |
getFirstDisplayedColumn()
|
MiFont |
getFontDrawn()
|
MiIFlowEditorEventHandler |
getInteractiveEditor()
|
MiBounds |
getItemBounds(int charPos)
|
double |
getLineSpacing()
|
int |
getMaxNumCharacters()
|
boolean |
getModificationsAreUndoable()
|
boolean |
getMustDoubleClickToEdit()
|
int |
getNumberOfRows()
|
int |
getNumDisplayedColumns()
|
int |
getNumDisplayedRows()
|
double |
getPageWidth()
|
MiPropertyDescriptions |
getPropertyDescriptions()
Gets the descriptions of all of the properties. |
java.lang.String |
getPropertyValue(java.lang.String name)
Gets the textual value of the property with the given name. |
int |
getRowLength(int row)
|
static boolean |
getScaleChangeModifiesFontPointSize()
|
boolean |
getSelectEntireTextAsPartInEditor()
|
java.lang.String |
getSelection()
|
int |
getSelectionEnd()
|
int |
getSelectionStart()
|
java.lang.String |
getText()
|
MiAttributes |
getUnderlineAndStrikeOutWhenBoldAttributes()
|
MiAttributes |
getUnderlineAndStrikeOutWhenNotBoldAttributes()
|
java.lang.String |
getValue()
|
boolean |
getWordWrapEnabled()
|
boolean |
isEditable()
|
boolean |
isExpandingSystemMacrosFoundInSpecifiedText()
|
boolean |
isRowLineWrapped(int row)
|
boolean |
pick(MiBounds area)
Gets whether the given area intersects the bounds of this MiPart. |
void |
refreshLookAndFeel()
|
void |
render(MiRenderer renderer)
|
void |
scale(MiPoint center,
MiScale scale)
Scales the parts of this MiPart by the given scale factor. |
void |
set1DShapeStrokeBackgroundColor(java.awt.Color c)
Sets the background (fill) color of the (wide) lines of a shape unless it is a rectangle, circle, etc, whose stroke fill color is always the foreground color. |
void |
set1DShapeStrokesFilled(boolean flag)
Sets whether the graphic will always be 'solid', i.e. |
void |
setAttributes(MiAttributes atts)
Assigns the given attributes to this MiPart. |
void |
setBaselineY(double y)
|
void |
setEchoCharacter(char ch)
|
void |
setFirstDisplayedColumn(int num)
|
void |
setFontHorizontalJustification(int justification)
Sets the horizontal justfication any text. |
void |
setFontVerticalJustification(int justification)
Sets the vertical justfication any text. |
void |
setInteractiveEditor(MiIFlowEditorEventHandler h)
|
void |
setIsEditable(boolean flag)
|
void |
setIsExpandingSystemMacrosFoundInSpecifiedText(boolean flag)
|
void |
setKeyboardFocus(boolean flag)
|
void |
setLineSpacing(double spacing)
|
void |
setMaxNumCharacters(int num)
|
void |
setModificationsAreUndoable(boolean flag)
|
void |
setMustDoubleClickToEdit(boolean flag)
|
void |
setNumDisplayedColumns(int num)
|
void |
setNumDisplayedRows(int num)
|
void |
setPageWidth(double w)
|
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets the property with the given name to the given value. |
static void |
setScaleChangeModifiesFontPointSize(boolean flag)
|
void |
setSelectEntireTextAsPartInEditor(boolean flag)
|
void |
setSelection(int start,
int end)
|
void |
setSelectionEnd(int pos)
|
void |
setSelectionStart(int pos)
|
void |
setSensitive(boolean flag)
Sets whether this MiPart is sensitive. |
void |
setText(java.lang.String str)
|
void |
setUnderlineAndStrikeOutWhenBoldAttributes(MiAttributes atts)
|
void |
setUnderlineAndStrikeOutWhenNotBoldAttributes(MiAttributes atts)
|
void |
setUnderlineLetter(int index)
|
void |
setValue(java.lang.String s)
|
void |
setWordWrapEnabled(boolean flag)
|
java.lang.String |
toString()
Returns information about this MiPart. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MiText()
public MiText(java.lang.String str)
public MiText(double x,
double y,
java.lang.String str)
| Method Detail |
public void setText(java.lang.String str)
public java.lang.String getText()
public void setValue(java.lang.String s)
public java.lang.String getValue()
public void setEchoCharacter(char ch)
public char getEchoCharacter()
public void setModificationsAreUndoable(boolean flag)
public boolean getModificationsAreUndoable()
public static void setScaleChangeModifiesFontPointSize(boolean flag)
public static boolean getScaleChangeModifiesFontPointSize()
public void setWordWrapEnabled(boolean flag)
public boolean getWordWrapEnabled()
public void setIsEditable(boolean flag)
public boolean isEditable()
public void setSensitive(boolean flag)
MiPart
setSensitive in class MiPartflag - true if this is to be sensitivepublic void setFontHorizontalJustification(int justification)
MiPart
setFontHorizontalJustification in class MiPartjustification - the justificationpublic void setFontVerticalJustification(int justification)
MiPart
setFontVerticalJustification in class MiPartjustification - the justificationpublic void setSelectEntireTextAsPartInEditor(boolean flag)
public boolean getSelectEntireTextAsPartInEditor()
public void setMustDoubleClickToEdit(boolean flag)
public boolean getMustDoubleClickToEdit()
public void setIsExpandingSystemMacrosFoundInSpecifiedText(boolean flag)
public boolean isExpandingSystemMacrosFoundInSpecifiedText()
public void setMaxNumCharacters(int num)
public int getMaxNumCharacters()
public void setFirstDisplayedColumn(int num)
public int getFirstDisplayedColumn()
public void setNumDisplayedRows(int num)
public int getNumDisplayedRows()
public void setLineSpacing(double spacing)
public double getLineSpacing()
public void setNumDisplayedColumns(int num)
public int getNumDisplayedColumns()
public void setPageWidth(double w)
public double getPageWidth()
public void setUnderlineLetter(int index)
public void setUnderlineAndStrikeOutWhenBoldAttributes(MiAttributes atts)
public MiAttributes getUnderlineAndStrikeOutWhenBoldAttributes()
public void setUnderlineAndStrikeOutWhenNotBoldAttributes(MiAttributes atts)
public MiAttributes getUnderlineAndStrikeOutWhenNotBoldAttributes()
public MiFont getFontDrawn()
public void setAttributes(MiAttributes atts)
MiPart
setAttributes in class MiPartatts - the attributespublic void setSelectionStart(int pos)
public int getSelectionStart()
public void setSelectionEnd(int pos)
public int getSelectionEnd()
public void setSelection(int start,
int end)
public java.lang.String getSelection()
public int getCursorPosition()
public void refreshLookAndFeel()
refreshLookAndFeel in class MiPartpublic void render(MiRenderer renderer)
renderer - the renderer to use for drawingpublic void setKeyboardFocus(boolean flag)
flag - true if this MiPart is to have
keyboard focusMiKeyboardFocusManagerpublic void setInteractiveEditor(MiIFlowEditorEventHandler h)
public MiIFlowEditorEventHandler getInteractiveEditor()
public void scale(MiPoint center,
MiScale scale)
scale in class MiPartcenter - the center of scalingscale - the scale factorpublic java.lang.String toString()
MiPart
toString in class MiPartpublic boolean pick(MiBounds area)
MiPart
pick in class MiPartarea - the area
public MiBounds getItemBounds(int charPos)
public int convertLocationToPosition(MiPoint pt)
public int getNumberOfRows()
public int getRowLength(int row)
public boolean isRowLineWrapped(int row)
public void calcPreferredSize(MiSize size)
MiPart
calcPreferredSize in class MiPartsize - the (returned) preferred sizepublic void calcMinimumSize(MiSize size)
MiPart
calcMinimumSize in class MiPartsize - the (returned) minimum sizepublic void copy(MiPart source)
copy in class MiPartsource - the part to copyMiPart.copy()public void setBaselineY(double y)
public double getBaselineY()
public MiBounds getBoundsAtDrawnScale(MiRenderer renderer)
public void doRotate(MiPoint center,
double radians)
center - the center of rotationradians - the angle to rotate
public void setPropertyValue(java.lang.String name,
java.lang.String value)
setPropertyValue in class MiPartname - the name of an propertyvalue - the value of the propertypublic java.lang.String getPropertyValue(java.lang.String name)
getPropertyValue in class MiPartname - the name of a property
public MiPropertyDescriptions getPropertyDescriptions()
getPropertyDescriptions in class MiPartpublic void set1DShapeStrokeBackgroundColor(java.awt.Color c)
MiPart
set1DShapeStrokeBackgroundColor in class MiPartc - the colorpublic void set1DShapeStrokesFilled(boolean flag)
MiPart
set1DShapeStrokesFilled in class MiPartflag - true if solid, false if the graphic
shape is to be filled with whatever
the background color is. The default
is 'false'.MiPart.isFilled(),
MiPart.setBackgroundColor(java.awt.Color),
MiPart.setFilled(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||