|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiContainer
This class is a MiPart that can contain other MiParts. The MiPart methods that can add, inquire and remove MiParts are implemented here.
| Field Summary |
| Constructor Summary | |
MiContainer()
Constructs a new MiContainer. |
|
| Method Summary | |
void |
appendPart(MiPart part)
Appends the given part to this container. |
void |
calcMinimumSize(MiSize size)
Gets the minimum size of this MiPart. |
void |
calcPreferredSize(MiSize size)
Gets the preferred size of this MiPart. |
boolean |
containsPart(MiPart part)
Gets whether the given part is in this container. |
MiPart |
deepCopy()
Makes and returns a copy of this container and all of it's parts. |
void |
doImport(MiDataTransferOperation transfer)
Import the data specified by the given data transfer operation. |
int |
getIndexOfPart(MiPart obj)
Gets the index of the given part in this container. |
boolean |
getIntersectionWithLine(MiPoint insidePoint,
MiPoint otherPoint,
MiPoint returnedIntersectionPoint)
Gets whether if there is an intersection between the line formed by the given points and the outer bounds of this MiPart. |
boolean |
getKeepConnectionsBelowNodes()
Gets whether the connections are to be drawn before (behind) nodes. |
int |
getNumberOfParts()
Gets the number of parts this container has. |
MiPart |
getPart(int index)
Gets the part of this container at the given index. |
MiPart |
getPart(java.lang.String name)
Gets the part of this container with the given name. |
java.lang.String[] |
getSupportedImportFormats()
Gets list of data formats that this MiPart is able to import. |
boolean |
hasEventHandlers()
Gets whether this MiPart or any of it's attachments or parts has event handlers assigned. |
boolean |
hasValidCachedEventHandlerInfo()
Gets whether the cached information about the event handlers assigned to this MiPart and it's parts is valid. |
void |
insertPart(MiPart part,
int index)
Inserts the given part at the given index into this container. |
void |
invalidateCachedEventHandlerInfo()
Invalidates the cached information about the event handlers assigned to this MiPart and it's containers. |
boolean |
isContainerOf(MiPart part)
Gets whether the given part is in this container or in one of the parts of this container. |
MiPart |
isContainerOf(java.lang.String name)
Gets the part with the given name in this container or in one of the parts of this container. |
MiPart |
isContainerOfWithAttachments(java.lang.String name)
|
boolean |
pick(MiBounds area)
Gets whether the given area intersects the bounds of this MiPart. |
void |
pickDeepListContents(MiBounds area,
MiParts list)
Gets the list of parts, not including this MiPart, whose bounds intersects the given area. |
MiPart |
pickObject(MiBounds area)
Returns the top MiPart at the given area. |
void |
removeAllParts()
Removes all parts from this container. |
void |
removePart(int index)
Removes the part from this container at the given index. |
void |
removePart(MiPart part)
Removes the given part from this container. |
void |
setKeepConnectionsBelowNodes(boolean flag)
Sets whether the order of the MiParts in this container are kept such that MiConnections are at the begining of the list. |
void |
setPart(MiPart part,
int index)
Replaces the part at the given index with the given part. |
void |
translate(int partNum,
MiVector vector)
Translates a part of this container at the given index. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MiContainer()
| Method Detail |
public java.lang.String[] getSupportedImportFormats()
getSupportedImportFormats in interface MiiDragAndDropParticipantgetSupportedImportFormats in class MiPartdoImport(com.swfm.mica.core.MiDataTransferOperation),
MiPart.setSupportedImportFormats(java.lang.String[]),
MiPart.getSupportedExportFormats()public void setKeepConnectionsBelowNodes(boolean flag)
flag - true if connections to be drawn
firstMiConnection.setTruncateLineAtEndPointPartBoundries(boolean),
getKeepConnectionsBelowNodes()public boolean getKeepConnectionsBelowNodes()
setKeepConnectionsBelowNodes(boolean)public void doImport(MiDataTransferOperation transfer)
doImport in interface MiiDragAndDropParticipantdoImport in class MiParttransfer - the data to import
public void translate(int partNum,
MiVector vector)
partNum - the index of the part to translatevector - the translation factorpublic boolean pick(MiBounds area)
pick in class MiPartarea - the area
public MiPart pickObject(MiBounds area)
pickObject in class MiPartarea - the given area
public void pickDeepListContents(MiBounds area,
MiParts list)
pickDeepListContents in class MiPartarea - the arealist - the (returned) list of parts
public int getNumberOfParts()
getNumberOfParts in class MiPartpublic MiPart getPart(int index)
getPart in class MiPartindex - the index of the part to get
public MiPart getPart(java.lang.String name)
getPart in class MiPartname - the name of the part to get
public void appendPart(MiPart part)
appendPart in class MiPartpart - the part to append
java.lang.IllegalArgumentException - if append
a part to itself
public void insertPart(MiPart part,
int index)
insertPart in class MiPartpart - the part to insertindex - where to insert the part
java.lang.IllegalArgumentException - if add
a part to itself
public void setPart(MiPart part,
int index)
setPart in class MiPartpart - the part to insertindex - where to place the partpublic void removePart(int index)
removePart in class MiPartindex - index of the part to remove.public void removePart(MiPart part)
removePart in class MiPartpart - the part to remove.public int getIndexOfPart(MiPart obj)
getIndexOfPart in class MiPartobj - the part to get the index of.
public void removeAllParts()
removeAllParts in class MiPartpublic MiPart deepCopy()
deepCopy in class MiPartMiPart.copy()public boolean containsPart(MiPart part)
containsPart in class MiPartpart - the part to check for
public boolean isContainerOf(MiPart part)
isContainerOf in class MiPartpart - the part to check for
public MiPart isContainerOf(java.lang.String name)
isContainerOf in class MiPartname - the name of the part to look for
public MiPart isContainerOfWithAttachments(java.lang.String name)
isContainerOfWithAttachments in class MiPartpublic boolean hasEventHandlers()
hasEventHandlers in class MiPartpublic boolean hasValidCachedEventHandlerInfo()
hasValidCachedEventHandlerInfo in class MiPartpublic void invalidateCachedEventHandlerInfo()
public void calcMinimumSize(MiSize size)
calcMinimumSize in class MiPartsize - the (returned) minimum sizeMiPart.getMinimumSize(com.swfm.mica.core.MiSize)public void calcPreferredSize(MiSize size)
calcPreferredSize in class MiPartsize - the (returned) preferred sizeMiPart.getPreferredSize(com.swfm.mica.core.MiSize)
public boolean getIntersectionWithLine(MiPoint insidePoint,
MiPoint otherPoint,
MiPoint returnedIntersectionPoint)
getIntersectionWithLine in class MiPartinsidePoint - the point inside this MiPart's
outer boundsotherPoint - the point outside this MiPart's
outer boundsreturnedIntersectionPoint - the (returned) point of
intersection of the line between
the two given points and the
outer bounds of this MiPart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||