|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSEdit.Graphics.GObject
public abstract class GObject
classe abstraite correspondant à la représentation graphique des éléments de la structure.
SElement
Field Summary | |
---|---|
static int |
BOTTOM
|
protected java.awt.Rectangle |
bounds
|
static int |
CENTER
|
protected boolean |
displayLabel
|
protected SElement |
element
|
protected int |
height
|
protected int |
labelLocation
|
static int |
LEFT
|
static int |
RIGHT
|
boolean |
selected
|
static int |
TOP
|
static int |
TOP_RIGHT
|
protected int |
width
|
protected int |
x
|
protected int |
y
|
Constructor Summary | |
---|---|
GObject()
|
Method Summary | |
---|---|
void |
alignHorizontalTo(GObject o)
|
void |
alignVerticalTo(GObject o)
|
boolean |
contains(java.awt.Point p)
|
void |
delete()
|
void |
displayName(java.awt.Graphics g)
|
void |
drag(int xold,
int xnew,
int yold,
int ynew)
|
java.awt.Rectangle |
getBounds()
|
java.awt.Point |
getCenter()
|
java.awt.Dimension |
getDimension()
|
boolean |
getDisplayLabel()
Get the value of displayLabel. |
StructureEditor |
getEditor()
Get the value of editor. |
java.awt.Color |
getForeground()
Get the foreground color of this |
int |
getHeight()
Get the value of height. |
int |
getLabelLocation()
Get the value of labelLocation. |
java.awt.Point |
getLocation()
|
java.awt.Rectangle |
getRectangle()
|
SElement |
getSElement()
|
int |
getWidth()
Get the value of width. |
void |
init()
Initialize the graphic component associated to a node |
int |
intersection(int side,
int position)
|
java.awt.Point |
intersection(java.awt.Point p)
|
boolean |
isContainedIn(java.awt.Polygon p)
|
boolean |
isContainedIn(java.awt.Rectangle r)
|
boolean |
isSelectable()
|
boolean |
isSelected()
|
void |
paint(java.awt.Graphics g)
|
void |
reInstall(StructureEditor ed)
|
void |
select(boolean state)
|
void |
setCenter(int x,
int y)
|
void |
setCenter(java.awt.Point p)
|
void |
setDimension(int w,
int h)
|
void |
setDisplayLabel(boolean v)
Set the value of displayLabel. |
void |
setEditor(StructureEditor v)
|
void |
setForeground(java.awt.Color v)
Set the value of foreground. |
void |
setHeight(int v)
Set the value of height. |
void |
setLabelLocation(int v)
Set the value of labelLocation. |
void |
setLocation(int _x,
int _y)
|
void |
setLocation(java.awt.Point p)
|
void |
setSElement(SElement o)
|
void |
setSize(int w,
int h)
|
void |
setWidth(int v)
Set the value of width. |
void |
snapToGrid(int s)
|
void |
translate(int dx,
int dy)
|
void |
translateBound(int dx,
int dy,
java.awt.Rectangle r)
|
void |
translateWrap(int dx,
int dy,
java.awt.Rectangle r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RIGHT
public static final int LEFT
public static final int TOP
public static final int BOTTOM
public static final int CENTER
public static final int TOP_RIGHT
public boolean selected
protected boolean displayLabel
protected int labelLocation
protected int x
protected int y
protected int width
protected int height
protected java.awt.Rectangle bounds
protected SElement element
Constructor Detail |
---|
public GObject()
Method Detail |
---|
public StructureEditor getEditor()
public void setEditor(StructureEditor v)
public java.awt.Rectangle getRectangle()
public int getLabelLocation()
public void setLabelLocation(int v)
v
- Value to assign to labelLocation.public boolean getDisplayLabel()
public void setDisplayLabel(boolean v)
v
- Value to assign to displayLabel.public java.awt.Point getCenter()
public void setCenter(java.awt.Point p)
public void setCenter(int x, int y)
public java.awt.Point getLocation()
public void setLocation(java.awt.Point p)
public void setLocation(int _x, int _y)
public void init()
public void drag(int xold, int xnew, int yold, int ynew)
public void alignHorizontalTo(GObject o)
public void alignVerticalTo(GObject o)
public void select(boolean state)
public boolean isSelected()
public boolean isSelectable()
public void paint(java.awt.Graphics g)
public boolean contains(java.awt.Point p)
public java.awt.Point intersection(java.awt.Point p)
public int intersection(int side, int position)
public void translate(int dx, int dy)
public void translateWrap(int dx, int dy, java.awt.Rectangle r)
public void translateBound(int dx, int dy, java.awt.Rectangle r)
public void snapToGrid(int s)
public SElement getSElement()
public void setSElement(SElement o)
public boolean isContainedIn(java.awt.Rectangle r)
public boolean isContainedIn(java.awt.Polygon p)
public void displayName(java.awt.Graphics g)
public java.awt.Color getForeground()
public void setForeground(java.awt.Color v)
v
- Value to assign to foreground.public int getWidth()
public void setWidth(int v)
v
- Value to assign to width.public int getHeight()
public void setHeight(int v)
v
- Value to assign to height.public void setSize(int w, int h)
public void setDimension(int w, int h)
public java.awt.Dimension getDimension()
public java.awt.Rectangle getBounds()
public void delete()
public void reInstall(StructureEditor ed)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |