GP.Graphics
Class Text
java.lang.Object
|
+--GP.Graphics.Shape
|
+--GP.Graphics.Text
- All Implemented Interfaces:
- Behavioral, Colorable, Graphic, Movable, Orientable, Originable, Playable, Positionable, Reactive, Refreshable, Scalable, Selectable, Viewable
- Direct Known Subclasses:
- ValueText
- public class Text
- extends Shape
Method Summary |
Graphic |
Copy()
|
int |
GetDescent()
|
Font |
GetFont()
|
Size |
GetSize()
This method should return the current size of the object. |
java.lang.String |
GetString()
|
void |
Scale(double scaleWidth,
double scaleHeight)
This method should scale the object to the proper size give the
height and width multiplication factors. |
void |
SetFont(Font font)
|
void |
SetSize(Size size)
This method should set the current size of the object. |
void |
SetString(java.lang.String string)
|
java.lang.String |
toString()
|
Methods inherited from class GP.Graphics.Shape |
Act, AddBehavior, ApplyBehaviors, ApplyInstincts, DeSelect, equals, Fill, Frame, GetApplet, GetBoxBoundedSize, GetColor, GetContainer, GetCurrentTime, GetFillStyle, GetOrientation, GetPivot, GetPosition, Hide, IsPositionInside, IsVisible, Move, Move, Move, MoveBackward, MoveForward, MoveToBack, MoveToFront, Pause, Play, PositionIsOnlyInsideMe, PreferedSize, React, Refresh, RemoveAllBehaviors, RemoveBehavior, ReplaceAllBehaviors, Scale, Scale, Select, SetColor, SetContainer, SetFillStyle, SetOrientation, SetPivot, SetPosition, Show, Show, Start, Stop, Turn, Turn, Turn, Turn, Turn, Turn |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Text
public Text()
Text
public Text(java.lang.String string)
Text
public Text(Container container)
Text
public Text(Container container,
java.lang.String string)
Text
public Text(Text text)
Copy
public Graphic Copy()
- Overrides:
Copy
in class Shape
GetSize
public Size GetSize()
- Description copied from interface:
Scalable
- This method should return the current size of the object.
- Overrides:
GetSize
in class Shape
- Following copied from interface:
GP.Scalable
- Returns:
- the current size of the object
SetSize
public void SetSize(Size size)
- Description copied from interface:
Scalable
- This method should set the current size of the object.
- Overrides:
SetSize
in class Shape
- Following copied from interface:
GP.Scalable
- Parameters:
size
- the new size
Scale
public void Scale(double scaleWidth,
double scaleHeight)
- Description copied from interface:
Scalable
- This method should scale the object to the proper size give the
height and width multiplication factors.
- Overrides:
Scale
in class Shape
- Following copied from interface:
GP.Scalable
- Parameters:
widthFactor
- heightFactor
-
SetString
public void SetString(java.lang.String string)
GetString
public java.lang.String GetString()
SetFont
public void SetFont(Font font)
GetDescent
public int GetDescent()
GetFont
public Font GetFont()
toString
public java.lang.String toString()
- Overrides:
toString
in class Shape