public class SvgViewBrowser extends Xholon implements ISvgView
Modifier and Type | Field and Description |
---|---|
static int |
AT_AUTO |
static int |
AT_CSS |
static int |
AT_XML |
DATA_URI_SCHEME, I18NURI_DEFAULT, MODELNAME_DEFAULT, SIG_ACT_REQ, SIG_ADD_VIEWBEHAVIOR_REQ, SIG_DISPLAY_REQ, SIG_MAKETEXT_REQ, SIG_PROCESS_RSP, SIG_SETUP_REQ, SIG_SETUP_SVGATTRIBUTESURI_REQ, SIG_SETUP_SVGURI_REQ, SIG_STATUS_NOT_OK_REQ, SIG_STATUS_OK_REQ, SIG_STYLE_REQ, SIG_XMLATTR_REQ, SVG_DATA_URI, SVG_MIME_TYPE, SVGALL_DEFAULTS, SVGURI_DEFAULT, SVGURIFALLBACK_DEFAULT, VIEWABLES_CREATE, VIEWABLESROOT_DEFAULT, VIEWABLESURI_DEFAULT
DEFAULT_SIZE_MSG_Q, DEFAULT_SIZE_SYSTEM_MSG_Q, GETNAME_DEFAULT, GETNAME_LOCALPART_ID, GETNAME_NOROLENAME, GETNAME_ROLENAME_OR_CLASSNAME, GETNAME_ROLENAMESEP_, GETNAME_SIZE_TEMPLATE, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx, XHOLON_ID_DEFAULT, XHOLON_ID_NULL
Constructor and Description |
---|
SvgViewBrowser() |
Modifier and Type | Method and Description |
---|---|
void |
act()
Do some action during this time step.
|
void |
doAction(java.lang.String action)
Do a specific action that this xholon knows how to do.
|
void |
finishSetup()
Finish the setup after the SVG diagram has loaded.
|
java.lang.String[] |
getActionList()
Get a list of actions that this xholon can do.
|
JavaScriptObject |
getDiagram() |
java.lang.String |
getFormat() |
java.lang.String |
getI18nUri() |
java.lang.String |
getModelName() |
java.lang.String |
getSvgAttributesUri() |
java.lang.String |
getSvgUri() |
java.lang.String |
getSvgUriFallback() |
boolean |
getVal_boolean()
Get the value of a "boolean" maintained by this xholon instance.
|
java.lang.Object |
getVal_Object()
Get the value of a "Object" maintained by this xholon instance.
|
IXholon |
getViewablesRoot() |
java.lang.String |
getViewablesUri() |
void |
handleDragOverEvent(Event doe)
this is necessary; drop fails to do anything without this ???
|
void |
handleDropEvent(Event de)
This works with Google Chrome.
|
boolean |
isShouldInitNumericText() |
void |
onBrowserEvent(Event event) |
void |
processReceivedMessage(IMessage msg)
Process a received message taken from the message queue.
|
IMessage |
processReceivedSyncMessage(IMessage msg)
Process a received Synchronous message.
|
void |
setActionList(java.lang.String[] actionList)
Set the list of actions that this xholon can do.
|
void |
setDiagram(JavaScriptObject diagram) |
void |
setFormat(java.lang.String format) |
void |
setI18nUri(java.lang.String i18nUri) |
void |
setModelName(java.lang.String modelName) |
void |
setShouldInitNumericText(boolean shouldInitNumericText) |
void |
setSvgAttributesUri(java.lang.String svgAttributesUri) |
void |
setSvgUri(java.lang.String svgUri) |
void |
setSvgUriFallback(java.lang.String svgUri) |
java.lang.Object |
setup(IMessage msg)
Setup the SVG image, by parsing the SVG parameters, loading the image, and initializing it.
|
void |
setVal(boolean val)
Set the value of a "boolean" maintained by this xholon instance.
|
void |
setViewablesRoot(IXholon viewablesRoot) |
void |
setViewablesUri(java.lang.String viewablesUri) |
java.lang.String |
toString() |
actNr, appendChild, appendChild, appendChild, appendsOwnChildren, bindPorts, cleanup, compareTo, configure, configure, consoleLog, decVal, decVal, depth, equals, findFirstChildWithXhClass, findFirstChildWithXhClass, forwardMessage, forwardSyncMessage, getAllPorts, getAnnotation, getApp, getAttributeNodeXh, getAttributeXh, getChildNodes, getClassNode, getClassNode, getFactory, getFirstChild, getFirstSibling, getId, getInteraction, getInteractionsEnabled, getIQueueImplName, getLastChild, getLastSibling, getLogger, getMsgQ, getName, getName, getNeighbors, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumLevels, getNumSiblings, getParentNode, getPort, getPort, getPreviousSibling, getRoleName, getRootNode, getSelfAndSiblings, getSelfAndSiblingsIndex, getService, getSiblings, getSystemMsgQ, getUid, getUri, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_short, getVal_String, getVal, getXhc, getXhcId, getXhcName, getXholon2Xml, getXhType, getXml2Xholon, getXPath, handleNodeSelection, handleNodeSelection, hasAncestor, hasAnnotation, hasAttributeXh, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, hasSiblingNodes, height, incVal, incVal, initialize, initStatics, inOrderPrint, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertFirstChild, isActiveObject, isAttributeHandler, isBound, isContainer, isExternal, isInternal, isLeaf, isPassiveObject, isRootNode, isUniqueSibling, isUniqueSiblingRoleName, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postAct, postConfigure, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processSystemMessageQ, reconfigure, registerMessageForwardee, remove, removeAttributeNodeXh, removeAttributeXh, removeChild, replaceNode, searchForReferencingNodes, searchForReferencingNodesRecurse, sendMessage, sendMessage, sendMessage, sendSyncMessage, sendSyncMessage, sendSyncMessage, sendSystemMessage, sendSystemMessage, setAnnotation, setApp, setAttributeNodeXh, setAttributeVal, setAttributeXh, setFirstChild, setId, setName, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setPort, setPort, setPorts, setRoleName, setUid, setUri, setVal_boolean, setVal_byte, setVal_char, setVal_double, setVal_float, setVal_int, setVal_long, setVal_Object, setVal_short, setVal_String, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setXhc, showAnnotation, swapNode, terminate, toXml, toXmlAttribute, toXmlAttributes, toXmlText, treeSize, visit
public static final int AT_CSS
public static final int AT_XML
public static final int AT_AUTO
public void setVal(boolean val)
IXholon
public boolean getVal_boolean()
IXholon
getVal_boolean
in interface IXholon
getVal_boolean
in class Xholon
public java.lang.Object getVal_Object()
IXholon
getVal_Object
in interface IXholon
getVal_Object
in class Xholon
public void act()
IXholon
public void processReceivedMessage(IMessage msg)
IXholon
processReceivedMessage
in interface IXholon
processReceivedMessage
in class Xholon
msg
- The message that was received.public IMessage processReceivedSyncMessage(IMessage msg)
IXholon
processReceivedSyncMessage
in interface IXholon
processReceivedSyncMessage
in class Xholon
msg
- The message that was received.public java.lang.Object setup(IMessage msg)
msg
- public void finishSetup()
public void onBrowserEvent(Event event)
public void handleDragOverEvent(Event doe)
public void handleDropEvent(Event de)
public java.lang.String[] getActionList()
IXholon
getActionList
in interface IXholon
getActionList
in class Xholon
public void setActionList(java.lang.String[] actionList)
IXholon
setActionList
in interface IXholon
setActionList
in class Xholon
actionList
- A list of actions, or null.public void doAction(java.lang.String action)
IXholon
public IXholon getViewablesRoot()
public void setViewablesRoot(IXholon viewablesRoot)
public java.lang.String getViewablesUri()
public void setViewablesUri(java.lang.String viewablesUri)
public java.lang.String getSvgUriFallback()
public void setSvgUriFallback(java.lang.String svgUri)
public java.lang.String getSvgUri()
public void setSvgUri(java.lang.String svgUri)
public java.lang.String getSvgAttributesUri()
public void setSvgAttributesUri(java.lang.String svgAttributesUri)
public java.lang.String getModelName()
public void setModelName(java.lang.String modelName)
public java.lang.String getI18nUri()
public void setI18nUri(java.lang.String i18nUri)
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
public boolean isShouldInitNumericText()
public void setShouldInitNumericText(boolean shouldInitNumericText)
public JavaScriptObject getDiagram()
public void setDiagram(JavaScriptObject diagram)