SEdit.Graphics
Class GRectangle

java.lang.Object
  extended bySEdit.Graphics.GObject
      extended bySEdit.Graphics.GNode
          extended bySEdit.Graphics.GRectangle
Direct Known Subclasses:
GLogicalDisplay, GPetriTransition, GPort, GRoundedRectangle

public class GRectangle
extends GNode

CLASSE GRectangle


Field Summary
protected static int rDefaultHeight
           
protected static int rDefaultWidth
           
 
Fields inherited from class SEdit.Graphics.GNode
HANDLE_SIZE, resizable, selectedHandle
 
Fields inherited from class SEdit.Graphics.GObject
BOTTOM, bounds, CENTER, displayLabel, element, height, labelLocation, LEFT, RIGHT, selected, TOP, TOP_RIGHT, width, x, y
 
Constructor Summary
GRectangle()
           
 
Method Summary
 boolean contains(Point p)
           
 Point intersection(Point p)
           
 boolean isContainedIn(Rectangle r)
           
 void paint(Graphics g)
           
 
Methods inherited from class SEdit.Graphics.GNode
displayHandles, doDrag, doReSelect, getResizable, getSelectedHandle, select, setResizable
 
Methods inherited from class SEdit.Graphics.GObject
alignHorizontalTo, alignVerticalTo, delete, displayName, drag, getBounds, getCenter, getDimension, getDisplayLabel, getEditor, getForeground, getHeight, getLabelLocation, getLocation, getRectangle, getSElement, getWidth, init, intersection, isContainedIn, isSelectable, isSelected, reInstall, setCenter, setCenter, setDimension, setDisplayLabel, setEditor, setForeground, setHeight, setLabelLocation, setLocation, setLocation, setSElement, setSize, setWidth, snapToGrid, translate, translateBound, translateWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rDefaultWidth

protected static int rDefaultWidth

rDefaultHeight

protected static int rDefaultHeight
Constructor Detail

GRectangle

public GRectangle()
Method Detail

paint

public void paint(Graphics g)
Overrides:
paint in class GObject

isContainedIn

public boolean isContainedIn(Rectangle r)
Overrides:
isContainedIn in class GNode

contains

public boolean contains(Point p)
Overrides:
contains in class GNode

intersection

public Point intersection(Point p)
Overrides:
intersection in class GNode


Copyright © J. Ferber, O. Gutknecht All Rights Reserved.