com.yworks.yfiles.server.graphml.flexio.data
Class TextLayoutFormat

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.TextLayoutFormat

public class TextLayoutFormat
extends java.lang.Object

A data object for the client side flashx.textLayout.formats.TextLayoutFormat.

This object stores the properties as key, value pairs. The values are stored as Strings.

The fontFamily and fontSize properties, for instance, can be set with

 textLayoutFormat.set("fontFamily", "dialog");
 textLayoutFormat.set("fontSize", "12");
 


Constructor Summary
TextLayoutFormat()
           
 
Method Summary
 java.lang.String get(java.lang.String propertyName)
          Gets the value (as String) of the property with the given name.
 java.util.Set getDefinedProperties()
          Gets a set with all set property names.
 boolean hasProperty(java.lang.String propertyName)
          Whether the property with the given name as a defined value.
 void remove(java.lang.String propertyName)
          Removes the value of the property with the given name.
 void set(java.lang.String propertyName, java.lang.String propertyValue)
          Sets the given value to the property with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextLayoutFormat

public TextLayoutFormat()
Method Detail

get

public java.lang.String get(java.lang.String propertyName)
Gets the value (as String) of the property with the given name. If the property has not been set yet, null is returned.

Parameters:
propertyName - The name of the property. This is the name the property has in the Flex class flashx.textLayout.formats.TextLayoutFormat.
Returns:
The value of the property as String.

set

public void set(java.lang.String propertyName,
                java.lang.String propertyValue)
Sets the given value to the property with the given name.

Parameters:
propertyName - The name of the property. This is the name the property has in the Flex class flashx.textLayout.formats.TextLayoutFormat.
propertyValue - The value of the property as String.

remove

public void remove(java.lang.String propertyName)
Removes the value of the property with the given name.

A property with an undefined value will be interpreted as default at the client.

Parameters:
propertyName - The name of the property to remove. This is the name the property has in the Flex class flashx.textLayout.formats.TextLayoutFormat.

hasProperty

public boolean hasProperty(java.lang.String propertyName)
Whether the property with the given name as a defined value.

A property with an undefined value will be interpreted as default at the client.

Parameters:
propertyName - The name of the property to remove. This is the name the property has in the Flex class flashx.textLayout.formats.TextLayoutFormat.
Returns:
true if the property has a value.

getDefinedProperties

public java.util.Set getDefinedProperties()
Gets a set with all set property names.

Returns:
A set with all property names for which a value has been set.


Copyright © 2000-2013 yWorks GmbH. All rights reserved