java.lang.Object
com.memoire.dja.DjaText
- All Implemented Interfaces:
- java.lang.Cloneable, DjaOptions, DjaOwner, java.io.Serializable
- public class DjaText
- extends java.lang.Object
- implements DjaOwner, DjaOptions, java.lang.Cloneable, java.io.Serializable
| Fields inherited from interface com.memoire.dja.DjaOptions |
ABSOLUTE, anchorsColor, ANY, attachsColor, AUTO, BOTH, CENTER, closeX, closeY, controlsColor, defaultBigFont, defaultBoldFont, defaultPlainFont, defaultSmallFont, deltaX, deltaY, DISK_BG, DISK_EMPTY, DISK_FG, EAST, freesColor, handlesColor, HELPER, HORIZONTAL, LEFT, LEFT_TRIANGLE_BG, LEFT_TRIANGLE_EMPTY, LEFT_TRIANGLE_FG, LOSANGE_BG, LOSANGE_EMPTY, LOSANGE_FG, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_WEST, RELATIVE_ANCHOR, RELATIVE_ATTACH, RELATIVE_CONTROL, RELATIVE_NE, RELATIVE_NW, RELATIVE_SE, RELATIVE_SW, RELATIVE_TEXT_NE, RELATIVE_TEXT_NW, RELATIVE_TEXT_SE, RELATIVE_TEXT_SW, RIGHT, RIGHT_TRIANGLE_BG, RIGHT_TRIANGLE_EMPTY, RIGHT_TRIANGLE_FG, selectionBackground, selectionForeground, selectionTextColor, selectionZone, snap, SOUTH, SOUTH_EAST, SOUTH_WEST, SQUARE_BG, SQUARE_EMPTY, SQUARE_FG, VERTICAL, WEST |
|
Constructor Summary |
DjaText()
|
DjaText(DjaObject _parent,
int _num,
java.lang.String _text)
|
DjaText(DjaObject _parent,
int _num,
java.lang.String _text,
boolean _multiline,
int _x,
int _y)
|
DjaText(DjaObject _parent,
int _num,
java.lang.String _text,
boolean _multiline,
int _x,
int _y,
int _position,
int _reference,
int _alignment,
java.awt.Color _color,
java.awt.Font _font,
boolean _underlined,
boolean _moveable)
|
parent_
private DjaObject parent_
num_
private int num_
text_
private java.lang.String text_
multiline_
private boolean multiline_
x_
private int x_
y_
private int y_
w_
private int w_
h_
private int h_
position_
private int position_
reference_
private int reference_
alignment_
private int alignment_
color_
private DjaColor color_
font_
private DjaFont font_
underlined_
private boolean underlined_
before_
private java.lang.String before_
after_
private java.lang.String after_
selected_
private boolean selected_
moveable_
private boolean moveable_
editable_
private boolean editable_
DjaText
public DjaText()
DjaText
public DjaText(DjaObject _parent,
int _num,
java.lang.String _text)
DjaText
public DjaText(DjaObject _parent,
int _num,
java.lang.String _text,
boolean _multiline,
int _x,
int _y)
DjaText
public DjaText(DjaObject _parent,
int _num,
java.lang.String _text,
boolean _multiline,
int _x,
int _y,
int _position,
int _reference,
int _alignment,
java.awt.Color _color,
java.awt.Font _font,
boolean _underlined,
boolean _moveable)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Description copied from class:
java.lang.Object
- This method may be called to create a new copy of the
Object. The typical behavior is as follows:
o == o.clone() is false
o.getClass() == o.clone().getClass()
is true
o.equals(o) is true
However, these are not strict requirements, and may
be violated if necessary. Of the three requirements, the
last is the most commonly violated, particularly if the
subclass does not override Object.equals(Object)>Object.equals(Object) 55 .
If the Object you call clone() on does not implement
java.lang.Cloneable (which is a placeholder interface), then
a CloneNotSupportedException is thrown. Notice that
Object does not implement Cloneable; this method exists
as a convenience for subclasses that do.
Object's implementation of clone allocates space for the
new Object using the correct class, without calling any
constructors, and then fills in all of the new field values
with the old field values. Thus, it is a shallow copy.
However, subclasses are permitted to make a deep copy.
All array types implement Cloneable, and override
this method as follows (it should never fail):
public Object clone()
{
try
{
super.clone();
}
catch (CloneNotSupportedException e)
{
throw new InternalError(e.getMessage());
}
}
getGrid
public DjaGrid getGrid()
- Specified by:
getGrid in interface DjaOwner
fireChange
private void fireChange()
fireGridEvent
public void fireGridEvent(DjaOwner _object,
int _id)
getOwner
public final DjaOwner getOwner()
- Specified by:
getOwner in interface DjaOwner
getParent
public DjaObject getParent()
setParent
void setParent(DjaObject _parent)
getNum
public int getNum()
setNum
void setNum(int _num)
getText
public java.lang.String getText()
getDisplayText
public java.lang.String getDisplayText()
setText
public void setText(java.lang.String _text)
isMultiline
public boolean isMultiline()
setMultiline
public void setMultiline(boolean _multiline)
isEditable
public boolean isEditable()
setEditable
public void setEditable(boolean _editable)
getX
public int getX()
setX
public void setX(int _x)
getY
public int getY()
setY
public void setY(int _y)
getW
public int getW()
setW
public void setW(int _w)
getH
public int getH()
setH
public void setH(int _h)
getColor
public java.awt.Color getColor()
setColor
public void setColor(java.awt.Color _color)
getFont
public java.awt.Font getFont()
setFont
public void setFont(java.awt.Font _font)
getPosition
public int getPosition()
setPosition
public void setPosition(int _position)
getReference
public int getReference()
setReference
public void setReference(int _reference)
getAlignment
public int getAlignment()
setAlignment
public void setAlignment(int _alignment)
isUnderlined
public boolean isUnderlined()
setUnderlined
public void setUnderlined(boolean _underlined)
isSelected
public boolean isSelected()
setSelected
public void setSelected(boolean _selected)
isMoveable
public boolean isMoveable()
setMoveable
public void setMoveable(boolean _moveable)
getBefore
public java.lang.String getBefore()
setBefore
public void setBefore(java.lang.String _before)
getAfter
public java.lang.String getAfter()
setAfter
public void setAfter(java.lang.String _after)
getLocation
public java.awt.Point getLocation()
setLocation
public void setLocation(java.awt.Point _p)
optimalSize
public java.awt.Dimension optimalSize()
getSize
public java.awt.Dimension getSize()
getBounds
public java.awt.Rectangle getBounds()
paint
public void paint(java.awt.Graphics _g)