|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yworks.yfiles.server.graphml.flexio.data.TemplateStyle
Base class for all yFiles FLEX styles that use a template class to define the visual appearance of the items.
Constructor Summary | |
TemplateStyle(java.lang.String templateClass)
Creates a new instance with the given template class. |
Method Summary | |
java.lang.String |
getContextPropertyName()
Gets the contextPropertyName. |
java.lang.String |
getDataPropertyName()
Gets the dataPropertyName. |
java.util.Collection |
getSharedInstances()
Returns a list containing the user tag provider and the style tag. |
java.lang.Object |
getStyleTag()
Gets the style tag. |
java.lang.String |
getTemplateClass()
Gets the name of the template class. |
IUserTagProvider |
getUserTagProvider()
Gets the IUserTagProvider to retrieve user defined data
which is associated with the model item.
|
java.lang.String |
getUserTagProviderClass()
Gets the name of the user tag provider class. |
boolean |
isHideSelectionPaintable()
Whether the standard selection painable should be drawn. |
void |
setContextPropertyName(java.lang.String contextPropertyName)
Gets the contextPropertyName. |
void |
setDataPropertyName(java.lang.String dataPropertyName)
Sets the dataPropertyName. |
void |
setHideSelectionPaintable(boolean hideSelectionPaintable)
Sets whether the standard selection painable should be drawn. |
void |
setStyleTag(java.lang.Object styleTag)
Sets the style tag. |
void |
setTemplateClass(java.lang.String templateClass)
Sets the name of the template class. |
void |
setUserTagProvider(IUserTagProvider userTagProvider)
Sets the IUserTagProvider to retrieve user defined data
which is associated with the model item.
|
void |
setUserTagProviderClass(java.lang.String userTagProviderClass)
Sets the name of the user tag provider class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateStyle(java.lang.String templateClass)
DisplayObject
which is used to display the model item.
templateClass
- The name of the (Flex) template class, written as "package::Clasname".Method Detail |
public IUserTagProvider getUserTagProvider()
IUserTagProvider
to retrieve user defined data
which is associated with the model item.
Default: An instance of TagOwnerUserTagProvider
.
public void setUserTagProvider(IUserTagProvider userTagProvider)
IUserTagProvider
to retrieve user defined data
which is associated with the model item.
Default: An instance of TagOwnerUserTagProvider
.
userTagProvider
- The user tag provider to set.public java.lang.Object getStyleTag()
public void setStyleTag(java.lang.Object styleTag)
styleTag
- The style tag to set.public java.lang.String getTemplateClass()
DisplayObject
which is used to display the model item. The class is written as "package::Clasname".
public void setTemplateClass(java.lang.String templateClass)
DisplayObject
which is used to display the model item. The class is written as "package::Clasname".
templateClass
- The name of the template class to set.public java.lang.String getUserTagProviderClass()
The class is written as "package::Clasname".
Default is "com.yworks.graph.drawing::TagOwnerUserTagProvider". This class retrieves the user tag
from the model item's ITagOwner
.
public void setUserTagProviderClass(java.lang.String userTagProviderClass)
The class is written as "package::Clasname".
Default is "com.yworks.graph.drawing::TagOwnerUserTagProvider". This class retrieves the user tag
from the model item's ITagOwner
.
userTagProviderClass
- The name of the template class.public java.lang.String getDataPropertyName()
The default value is "dataObject".
public void setDataPropertyName(java.lang.String dataPropertyName)
The default value is "dataObject".
dataPropertyName
- The name of the data property.public java.lang.String getContextPropertyName()
public void setContextPropertyName(java.lang.String contextPropertyName)
contextPropertyName
- The name of the context property.public boolean isHideSelectionPaintable()
true
if the standard selection paintable is to be hidden.public void setHideSelectionPaintable(boolean hideSelectionPaintable)
true
in order
to hide the standard selection visualization.
hideSelectionPaintable
- true
if the standard selection paintable is to be hidden.public java.util.Collection getSharedInstances()
getSharedInstances
in interface ISharedInstanceProvider
getUserTagProvider()
,
getStyleTag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |