treebolic.model
Interface IEdge

All Known Implementing Classes:
Edge, MutableEdge, TreeMutableEdge

public interface IEdge

Edge interface Style bits (32): 0000-0000-ttttt-tttt-ffff-ffff-aaaa-aaaa with a=arc t=to-terminator f=from-terminator byte 1 = arc byte 2 = from-terminator byte 3 = to terminator Each byte: SSSS dDsh with S=shape d=dot D=dash s=solid for each aaaa-aaaa, tttt-tttt, ffff-ffff Shapes 0001 = 1 = triangle 0010 = 2 = circle 0011 = 3 = diamond 0100 = 4 = arrow

Author:
Bernard Bou

Field Summary
static int ARROW
          Arrow terminator style
static int CIRCLE
          Circle terminator style
static byte DASH
          Dash style bit
static int DIAMOND
          Diamond terminator style
static byte DOT
          Dotted style bit
static int FROMARROW
          Arrow from-terminator bit
static int FROMCIRCLE
          Circle from-terminator bit
static int FROMDIAMOND
          Diamond from-terminator bit
static int FROMHOOK
          Hook from-terminator bit
static int FROMMASK
          From-terminator mask
static int FROMSHIFT
          From-terminator shift
static int FROMSOLID
          Solid from-terminator bit
static int FROMTRIANGLE
          Triangle from-terminator bit
static byte HIDDEN
          Hidden bit
static int HOOK
          Arrow terminator style
static int SHAPEMASK
          Terminator mask
static byte SOLID
          Solid style bit
static int STROKEMASK
          Stroke style bits
static int TOARROW
          Arrow to-terminator bit
static int TOCIRCLE
          Circle to-terminator bit
static int TODIAMOND
          Diamond to-terminator bit
static int TOHOOK
          Arrow to-terminator bit
static int TOMASK
          To-terminator mask
static int TOSHIFT
          To-terminator shift
static int TOSOLID
          Solid to-terminator bit
static int TOTRIANGLE
          Triangle to-terminator bit
static int TRIANGLE
          Triangle terminator style
 
Method Summary
 java.awt.Color getColor()
          Get edge color
 INode getFrom()
          Get from-node
 java.awt.Image getImage()
          Get edge image
 java.lang.String getImageFile()
          Get edge image filename
 java.lang.String getLabel()
          Get edge label
 java.lang.Integer getStyle()
          Set edge style
 INode getTo()
          Get to-node
 void setImage(java.awt.Image thisImage)
          Set image file
 

Field Detail

STROKEMASK

static final int STROKEMASK
Stroke style bits

See Also:
Constant Field Values

FROMMASK

static final int FROMMASK
From-terminator mask

See Also:
Constant Field Values

TOMASK

static final int TOMASK
To-terminator mask

See Also:
Constant Field Values

HIDDEN

static final byte HIDDEN
Hidden bit

See Also:
Constant Field Values

SOLID

static final byte SOLID
Solid style bit

See Also:
Constant Field Values

DASH

static final byte DASH
Dash style bit

See Also:
Constant Field Values

DOT

static final byte DOT
Dotted style bit

See Also:
Constant Field Values

SHAPEMASK

static final int SHAPEMASK
Terminator mask

See Also:
Constant Field Values

TRIANGLE

static final int TRIANGLE
Triangle terminator style

See Also:
Constant Field Values

CIRCLE

static final int CIRCLE
Circle terminator style

See Also:
Constant Field Values

DIAMOND

static final int DIAMOND
Diamond terminator style

See Also:
Constant Field Values

ARROW

static final int ARROW
Arrow terminator style

See Also:
Constant Field Values

HOOK

static final int HOOK
Arrow terminator style

See Also:
Constant Field Values

FROMSHIFT

static final int FROMSHIFT
From-terminator shift

See Also:
Constant Field Values

FROMSOLID

static final int FROMSOLID
Solid from-terminator bit

See Also:
Constant Field Values

FROMTRIANGLE

static final int FROMTRIANGLE
Triangle from-terminator bit

See Also:
Constant Field Values

FROMCIRCLE

static final int FROMCIRCLE
Circle from-terminator bit

See Also:
Constant Field Values

FROMDIAMOND

static final int FROMDIAMOND
Diamond from-terminator bit

See Also:
Constant Field Values

FROMARROW

static final int FROMARROW
Arrow from-terminator bit

See Also:
Constant Field Values

FROMHOOK

static final int FROMHOOK
Hook from-terminator bit

See Also:
Constant Field Values

TOSHIFT

static final int TOSHIFT
To-terminator shift

See Also:
Constant Field Values

TOSOLID

static final int TOSOLID
Solid to-terminator bit

See Also:
Constant Field Values

TOTRIANGLE

static final int TOTRIANGLE
Triangle to-terminator bit

See Also:
Constant Field Values

TOCIRCLE

static final int TOCIRCLE
Circle to-terminator bit

See Also:
Constant Field Values

TODIAMOND

static final int TODIAMOND
Diamond to-terminator bit

See Also:
Constant Field Values

TOARROW

static final int TOARROW
Arrow to-terminator bit

See Also:
Constant Field Values

TOHOOK

static final int TOHOOK
Arrow to-terminator bit

See Also:
Constant Field Values
Method Detail

getFrom

INode getFrom()
Get from-node

Returns:
from-node

getTo

INode getTo()
Get to-node

Returns:
to-node

getLabel

java.lang.String getLabel()
Get edge label

Returns:
edge label

getColor

java.awt.Color getColor()
Get edge color

Returns:
edge color

getStyle

java.lang.Integer getStyle()
Set edge style

Returns:
edge style

getImageFile

java.lang.String getImageFile()
Get edge image filename

Returns:
path to edge image filename

getImage

java.awt.Image getImage()
Get edge image

Returns:
edge image

setImage

void setImage(java.awt.Image thisImage)
Set image file

Parameters:
thisImage - edge image