|
||||||||||
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.BProperty
Field Summary | |
protected static String |
kKeyItem
|
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 | |
|
BProperty()
|
protected |
BProperty(BProperty prop)
|
|
BProperty(String name)
|
Method Summary | |
void |
addDrawable(BDrawable drawable)
|
void |
addString(String item)
|
int |
checkSizerHit(Point pt)
|
int |
checkXFormBounds(Point pt)
Checks to see if a point has hit the transformed bounds of this object |
void |
copy(BProperty src)
|
void |
dragMove(BScalarPoint deltaXY)
Called as the drawable is being moved |
void |
dragResize(BScalarPoint deltaXY)
Called as the drawable is being resized |
BScalarRect |
getBounds()
|
Object |
getChildAt(int index)
|
int |
getChildCount()
|
int |
getIndexOf(Object node)
|
String |
getName()
|
Object |
getParent()
|
Object |
getPropertyValue(String name)
|
boolean |
intersects(BScalarRect bounds)
Overridden from our super class for it's not the property which is drawable rather than the drawables contained to represent the data we hold. |
boolean |
isChangeAllowed(String name,
Object oldValue,
Object newValue)
|
boolean |
isHighlighted()
|
boolean |
isLeaf()
|
boolean |
isSelected()
|
boolean |
isStatusFlag(int flag)
|
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 |
removeString(String item)
|
void |
render(Graphics2D g2)
Renders the transformed coordinates of the drawable object to a Graphics2D |
boolean |
save(BDataFile file)
Saves the BDrawable to a file |
void |
setColour(Color colour)
|
void |
setFlag(int flag,
boolean on)
sets a flag on or off |
void |
setHighlighted(boolean on)
|
void |
setParent(Object parent)
|
void |
setSelected(boolean on)
|
void |
setTextArea(BTextArea text)
|
void |
startMove()
called when the drawable is about to be moved.. |
void |
startResize(int sizerNum)
called when the drawable is about to be resized.. |
void |
stopMove()
called when the drawable has finished being moved.. |
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,
getBasicStroke,
getColour,
getIconHeight,
getIconWidth,
getPos,
getPropertyPanel,
incPos,
isDeletable,
isInside,
isTransformed,
paintIcon,
setName,
setPos,
setPos,
snapToGrid,
startAdd,
stopAdd |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final String kKeyItem
Constructor Detail |
public BProperty()
public BProperty(String name)
protected BProperty(BProperty prop)
Method Detail |
public void addString(String item)
public void removeString(String item)
public Object getPropertyValue(String name)
public boolean isChangeAllowed(String name, Object oldValue, Object newValue)
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 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 BScalarRect getBounds()
public String toString()
- public void setColour(Color colour)
public void copy(BProperty src)
public void setTextArea(BTextArea text)
public void addDrawable(BDrawable drawable)
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 boolean intersects(BScalarRect bounds)
public void setHighlighted(boolean on)
public void setSelected(boolean on)
public void setFlag(int flag, boolean on)
public boolean isStatusFlag(int flag)
public boolean isHighlighted()
public boolean isSelected()
public int checkSizerHit(Point pt)
public int checkXFormBounds(Point pt)
Point
- pt - the point to check the hit against..public void startMove()
public void dragMove(BScalarPoint deltaXY)
public void stopMove()
public void startResize(int sizerNum)
int
- sizerNum - a sizerNum returned from checkSizerHitpublic void dragResize(BScalarPoint deltaXY)
public void stopResize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |