Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.dja
Class DjaText  view DjaText download DjaText.java

java.lang.Object
  extended bycom.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


Field Summary
private  java.lang.String after_
           
private  int alignment_
           
private  java.lang.String before_
           
private  DjaColor color_
           
private  boolean editable_
           
private  DjaFont font_
           
private  int h_
           
private  boolean moveable_
           
private  boolean multiline_
           
private  int num_
           
private  DjaObject parent_
           
private  int position_
           
private  int reference_
           
private  boolean selected_
           
private  java.lang.String text_
           
private  boolean underlined_
           
private  int w_
           
private  int x_
           
private  int y_
           
 
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)
           
 
Method Summary
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
private  void fireChange()
           
 void fireGridEvent(DjaOwner _object, int _id)
           
 java.lang.String getAfter()
           
 int getAlignment()
           
 java.lang.String getBefore()
           
 java.awt.Rectangle getBounds()
           
 java.awt.Color getColor()
           
 java.lang.String getDisplayText()
           
 java.awt.Font getFont()
           
 DjaGrid getGrid()
           
 int getH()
           
 java.awt.Point getLocation()
           
 int getNum()
           
 DjaOwner getOwner()
           
 DjaObject getParent()
           
 int getPosition()
           
 int getReference()
           
 java.awt.Dimension getSize()
           
 java.lang.String getText()
           
 int getW()
           
 int getX()
           
 int getY()
           
 boolean isEditable()
           
 boolean isMoveable()
           
 boolean isMultiline()
           
 boolean isSelected()
           
 boolean isUnderlined()
           
 java.awt.Dimension optimalSize()
           
 void paint(java.awt.Graphics _g)
           
 void setAfter(java.lang.String _after)
           
 void setAlignment(int _alignment)
           
 void setBefore(java.lang.String _before)
           
 void setColor(java.awt.Color _color)
           
 void setEditable(boolean _editable)
           
 void setFont(java.awt.Font _font)
           
 void setH(int _h)
           
 void setLocation(java.awt.Point _p)
           
 void setMoveable(boolean _moveable)
           
 void setMultiline(boolean _multiline)
           
(package private)  void setNum(int _num)
           
(package private)  void setParent(DjaObject _parent)
           
 void setPosition(int _position)
           
 void setReference(int _reference)
           
 void setSelected(boolean _selected)
           
 void setText(java.lang.String _text)
           
 void setUnderlined(boolean _underlined)
           
 void setW(int _w)
           
 void setX(int _x)
           
 void setY(int _y)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_
Constructor Detail

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)
Method Detail

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)