|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.edu.swin.synergy.plugin.diagram.BDrawable | +--au.edu.swin.synergy.plugin.packager.BPackageTerminator
Fields inherited from class au.edu.swin.synergy.plugin.diagram.BDrawable |
bounds,
iconOOZ,
kBackward,
kDefaultName,
kDefaultStatus,
kEmptyFlag,
kForward,
kHighlightFlag,
kHitBounds,
kHitSizer,
kKeyName,
kKeyStatus,
kNotHit,
kSelectedFlag,
kSizerCtrlPoint1,
kSizerCtrlPoint2,
kSizerEndArc,
kSizerHalfH,
kSizerHalfW,
kSizerNorthEast,
kSizerNorthWest,
kSizerSouthEast,
kSizerSouthWest,
kSizerStartArc,
lastFrame,
name,
paintCount,
pos,
sizerColour,
statusFlag,
tmpBounds |
Constructor Summary | |
|
BPackageTerminator()
Default constructor for BSaveable |
protected |
BPackageTerminator(BPackageTerminator pTerm)
|
|
BPackageTerminator(int x,
int y,
String name)
|
|
BPackageTerminator(String name)
Please complete the missing tags for BPackageTerminator |
Method Summary | |
void |
addDrawable(BDrawable drawable)
|
void |
bringSelectionToFront(Vector selection)
|
int |
checkSizerHit(Point pt)
Checks to see if a sizer has been hit by a point Works on xformed values. |
int |
checkXFormBounds(Point pt)
Checks to see if a point has hit the transformed bounds of this object |
void |
copy(BPackageTerminator src)
|
void |
dragResize(BScalarPoint deltaXY)
Called as the drawable is being resized |
Object |
getChildAt(int index)
|
int |
getChildCount()
|
int |
getDrawableIndex(BDrawable drawable)
|
Vector |
getDrawables()
|
int |
getHalfHeight()
|
BScalarPoint |
getHalfWH()
|
int |
getHalfWidth()
|
int |
getHeight()
|
int |
getIndexOf(Object node)
|
String |
getName()
|
BScalar |
getOOZ()
|
Object |
getParent()
|
BScalarRect |
getViewBounds()
|
BScalarRect |
getViewCoords()
|
int |
getWidth()
|
Rectangle |
getXFormedBounds()
|
int |
getXPos()
|
int |
getYPos()
|
BScalar |
getZ()
|
boolean |
isaDummy()
|
boolean |
isLeaf()
|
boolean |
load(BDataFile file)
Loads the BDrawable from a file |
BDrawable |
newInstance()
Creates and returns a new instance of the BDrawable object |
void |
removeAllChildren()
|
void |
removeDrawable(BDrawable drawable)
|
void |
removeDrawable(int index)
|
void |
render(Graphics2D g2)
Renders the transformed coordinates of the drawable object to a Graphics2D |
void |
renderOutlineAndSizers(Graphics2D g2)
|
boolean |
save(BDataFile file)
Saves the BDrawable to a file |
void |
sendSelectionToBack(Vector selection)
|
void |
setColour(Color colour)
|
void |
setDummyStatus(boolean dummy)
|
void |
setParent(Object parent)
|
void |
startResize(int sizerNum)
called when the drawable is about to be resized.. |
void |
stopResize()
called when the drawable has finished being resized.. |
String |
toString()
Please complete the missing tags for toString |
void |
transform(BView viewport,
BScalarPoint parentPos,
int frameCounter)
Transforms the coordinates of the drawable object to a new coordinate space, as defined by the viewport and parent pos. |
void |
updateBounds()
updates the bounding region of the drawable Called when something requires the bounds of the drawable to be updated. |
Methods inherited from class au.edu.swin.synergy.plugin.diagram.BDrawable |
checkXFormHit,
contains,
continueAdd,
copy,
delete,
doPasted,
dragAdd,
dragMove,
getBasicStroke,
getBounds,
getColour,
getIconHeight,
getIconWidth,
getPos,
getPropertyPanel,
incPos,
intersects,
isDeletable,
isHighlighted,
isInside,
isSelected,
isStatusFlag,
isTransformed,
paintIcon,
setFlag,
setHighlighted,
setName,
setPos,
setPos,
setSelected,
snapToGrid,
startAdd,
startMove,
stopAdd,
stopMove |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BPackageTerminator(String name)
- public BPackageTerminator()
public BPackageTerminator(int x, int y, String name)
protected BPackageTerminator(BPackageTerminator pTerm)
Method Detail |
public void setDummyStatus(boolean dummy)
public boolean isaDummy()
public final Rectangle getXFormedBounds()
public void transform(BView viewport, BScalarPoint parentPos, int frameCounter)
BViewport
- viewport - the viewport that this object is going to be drawn inPoint
- parentPos - coordinates of any parent object, but this time in view coords.public void render(Graphics2D g2)
Graphics2D
- g2 - the place to render the object to.public void renderOutlineAndSizers(Graphics2D g2)
public int checkXFormBounds(Point pt)
Point
- pt - the point to check the hit against..public int checkSizerHit(Point pt)
Point
- pt - the point to check the hit againstpublic void startResize(int sizerNum)
int
- sizerNum - a sizerNum returned from checkSizerHitpublic void dragResize(BScalarPoint deltaXY)
public void stopResize()
public BDrawable newInstance()
public boolean load(BDataFile file)
BDataFile
- file - the file to load frompublic boolean save(BDataFile file)
BDataFile
- file - the file to save topublic void updateBounds()
public Vector getDrawables()
public void addDrawable(BDrawable drawable)
public void removeDrawable(BDrawable drawable)
public void removeDrawable(int index)
public int getDrawableIndex(BDrawable drawable)
public void bringSelectionToFront(Vector selection)
public void sendSelectionToBack(Vector selection)
public String toString()
- public void setColour(Color colour)
public void copy(BPackageTerminator src)
public boolean isLeaf()
public Object getChildAt(int index)
public int getChildCount()
public Object getParent()
public int getIndexOf(Object node)
public void setParent(Object parent)
public void removeAllChildren()
public String getName()
public BScalar getZ()
public BScalar getOOZ()
public int getHalfWidth()
public int getHalfHeight()
public int getWidth()
public int getHeight()
public int getXPos()
public int getYPos()
public BScalarRect getViewCoords()
public BScalarRect getViewBounds()
public BScalarPoint getHalfWH()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |