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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.memoire.dja.DjaObject
      extended bycom.memoire.dja.DjaLink
All Implemented Interfaces:
java.lang.Cloneable, DjaOptions, DjaOwner, java.io.Serializable
Direct Known Subclasses:
DjaArcArrow, DjaBezierArrow, DjaBrokenArrow, DjaDirectArrow, DjaUmlLifeline, DjaZigZagArrow

public abstract class DjaLink
extends DjaObject


Field Summary
protected  DjaObject begin_
           
protected  DjaObject end_
           
static int NB_TYPE
           
protected  int nbegin_
           
protected  int nend_
           
protected  int obegin_
           
protected  int oend_
           
protected  int tbegin_
           
protected  int tend_
           
protected  int xbegin_
           
protected  int xend_
           
protected  int ybegin_
           
protected  int yend_
           
 
Fields inherited from class com.memoire.dja.DjaObject
 
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
DjaLink()
           
 
Method Summary
 void addText(java.lang.String _text)
           
protected  void drawBracket(java.awt.Graphics _g, int t, int o, int x0, int y0, int x1, int y1)
           
static void drawBracket(java.awt.Graphics _g, int t, int o, int x0, int y0, int x1, int y1, java.awt.Color fg, java.awt.Color bg, int e)
           
 DjaAttach[] getAttachs()
           
 int getBeginO()
           
 DjaObject getBeginObject()
           
 int getBeginPosition()
           
 int getBeginType()
           
 int getBeginX()
           
 int getBeginY()
           
 java.awt.Rectangle getBounds()
           
 int getEndO()
           
 DjaObject getEndObject()
           
 int getEndPosition()
           
 int getEndType()
           
 int getEndX()
           
 int getEndY()
           
 DjaHandle[] getHandles()
           
 int getHeight()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 void paintText(java.awt.Graphics _g)
           
protected  java.awt.Rectangle rectangle(int _x0, int _y0, int _x1, int _y1)
           
 void setBegin(DjaObject _begin, int _nbegin, int _tbegin)
           
 void setBeginO(int _obegin)
           
 void setBeginObject(DjaObject _begin)
           
 void setBeginPosition(int _nbegin)
           
 void setBeginType(int _tbegin)
           
 void setBeginX(int _xbegin)
           
 void setBeginY(int _ybegin)
           
 void setEnd(DjaObject _end, int _nend, int _tend)
           
 void setEndO(int _oend)
           
 void setEndObject(DjaObject _end)
           
 void setEndPosition(int _nend)
           
 void setEndType(int _tend)
           
 void setEndX(int _xend)
           
 void setEndY(int _yend)
           
 void setHeight(int _h)
           
 void setPoints(java.util.Vector _v)
           
 void setWidth(int _w)
           
 void setX(int _x)
           
 void setY(int _y)
           
protected  void updateXYO()
           
 
Methods inherited from class com.memoire.dja.DjaObject
addText, afterLoading, beforeSaving, clone, contains, fireGridEvent, getAnchors, getBackground, getBeginConnections, getColor, getControls, getData, getEndConnections, getExtendedBounds, getExtendedBounds, getFont, getForeground, getGrid, getIcon, getOwner, getProperty, getPropertyKeys, getText, getText, getTextArray, getTextColor, getTextPosition, getTexts, isSelected, isTextMultiline, paint, paintAnchors, paintAttachs, paintControls, paintHandles, paintInteractive, paintObject, paintTexts, putData, putProperty, removeData, removeProperty, setBackground, setColor, setFont, setForeground, setOwner, setSelected, setText, setText, setTextArray, setTextBounds, setTextColor, setTextPosition, textChanged, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NB_TYPE

public static final int NB_TYPE
See Also:
Constant Field Values

begin_

protected DjaObject begin_

end_

protected DjaObject end_

nbegin_

protected int nbegin_

nend_

protected int nend_

tbegin_

protected int tbegin_

tend_

protected int tend_

xbegin_

protected int xbegin_

xend_

protected int xend_

ybegin_

protected int ybegin_

yend_

protected int yend_

obegin_

protected int obegin_

oend_

protected int oend_
Constructor Detail

DjaLink

public DjaLink()
Method Detail

setPoints

public void setPoints(java.util.Vector _v)

getBounds

public java.awt.Rectangle getBounds()
Specified by:
getBounds in class DjaObject

updateXYO

protected void updateXYO()

addText

public void addText(java.lang.String _text)
Overrides:
addText in class DjaObject

getX

public int getX()
Overrides:
getX in class DjaObject

getY

public int getY()
Overrides:
getY in class DjaObject

getWidth

public int getWidth()
Overrides:
getWidth in class DjaObject

getHeight

public int getHeight()
Overrides:
getHeight in class DjaObject

setX

public void setX(int _x)
Specified by:
setX in class DjaObject

setY

public void setY(int _y)
Specified by:
setY in class DjaObject

setWidth

public void setWidth(int _w)
Specified by:
setWidth in class DjaObject

setHeight

public void setHeight(int _h)
Specified by:
setHeight in class DjaObject

rectangle

protected java.awt.Rectangle rectangle(int _x0,
                                       int _y0,
                                       int _x1,
                                       int _y1)

setBegin

public void setBegin(DjaObject _begin,
                     int _nbegin,
                     int _tbegin)

setEnd

public void setEnd(DjaObject _end,
                   int _nend,
                   int _tend)

getBeginObject

public DjaObject getBeginObject()

setBeginObject

public void setBeginObject(DjaObject _begin)

getEndObject

public DjaObject getEndObject()

setEndObject

public void setEndObject(DjaObject _end)

getBeginPosition

public int getBeginPosition()

setBeginPosition

public void setBeginPosition(int _nbegin)

getEndPosition

public int getEndPosition()

setEndPosition

public void setEndPosition(int _nend)

getBeginType

public int getBeginType()

setBeginType

public void setBeginType(int _tbegin)

getEndType

public int getEndType()

setEndType

public void setEndType(int _tend)

getBeginX

public int getBeginX()

getBeginY

public int getBeginY()

getBeginO

public int getBeginO()

getEndX

public int getEndX()

getEndY

public int getEndY()

getEndO

public int getEndO()

setBeginX

public void setBeginX(int _xbegin)

setBeginY

public void setBeginY(int _ybegin)

setBeginO

public void setBeginO(int _obegin)

setEndX

public void setEndX(int _xend)

setEndY

public void setEndY(int _yend)

setEndO

public void setEndO(int _oend)

getAttachs

public DjaAttach[] getAttachs()
Overrides:
getAttachs in class DjaObject

getHandles

public DjaHandle[] getHandles()
Overrides:
getHandles in class DjaObject

paintText

public void paintText(java.awt.Graphics _g)
Overrides:
paintText in class DjaObject

drawBracket

protected void drawBracket(java.awt.Graphics _g,
                           int t,
                           int o,
                           int x0,
                           int y0,
                           int x1,
                           int y1)

drawBracket

public static void drawBracket(java.awt.Graphics _g,
                               int t,
                               int o,
                               int x0,
                               int y0,
                               int x1,
                               int y1,
                               java.awt.Color fg,
                               java.awt.Color bg,
                               int e)