|
||||||||||
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.BPackageNode
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 | |
|
BPackageNode()
This is the default constructor needed for the BSaveable interface |
|
BPackageNode(BMetaElement element)
Please complete the missing tags for BPackageNode |
protected |
BPackageNode(BPackageNode pNode)
|
|
BPackageNode(int x,
int y,
BMetaElement element)
Please complete the missing tags for BPackageNode |
Method Summary | |
void |
addDrawable(BDrawable drawable)
|
void |
addTextProperty(int index,
BScalarPoint pos)
|
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(BPackageNode src)
|
Object |
getChildAt(int index)
|
int |
getChildCount()
|
int |
getDrawableIndex(BDrawable drawable)
|
Vector |
getDrawables()
|
int |
getIndexOf(Object node)
|
BMetaElement |
getMetaElement()
|
String |
getName()
|
Object |
getParent()
|
Vector |
getProperties()
|
BDrawable |
getTextProperty(int index)
|
Rectangle |
getXFormedBounds()
|
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 |
setParent(Object parent)
|
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,
dragResize,
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,
startResize,
stopAdd,
stopMove,
stopResize |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BPackageNode(BMetaElement element)
- public BPackageNode(int x, int y, BMetaElement element)
- protected BPackageNode(BPackageNode pNode)
public BPackageNode()
Method Detail |
public Vector getProperties()
public BMetaElement getMetaElement()
public final Rectangle getXFormedBounds()
public BDrawable getTextProperty(int index)
public void addTextProperty(int index, BScalarPoint pos)
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 objectpublic 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 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 int getDrawableIndex(BDrawable drawable)
public void removeDrawable(BDrawable drawable)
public void removeDrawable(int index)
public void bringSelectionToFront(Vector selection)
public void sendSelectionToBack(Vector selection)
public String toString()
- public void setColour(Color colour)
public void copy(BPackageNode 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |