com.yworks.yfiles.server.graphml.flexio.data
Class Table.StripeDefaults

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.Table.StripeDefaults
All Implemented Interfaces:
IMarkupExtensionFactory
Enclosing class:
Table

public static class Table.StripeDefaults
extends java.lang.Object
implements IMarkupExtensionFactory

The default settings for a newly created Column or Row.


Constructor Summary
Table.StripeDefaults()
           
 
Method Summary
 MarkupExtension createMarkupExtension(Lookup lookup)
          Creates a markup extension that can be used instead of the original class.
 Insets getInsets()
          The default insets for the stripe.
 ILabelModelParameter getLabelModelParameter()
          The default ILabelModelParameter.
 ILabelStyle getLabelStyle()
          The default style for a stripe label.
 double getMinimumSize()
          The default minimum size for the stripe.
 double getSize()
          The default size for the stripe.
 INodeStyle getStyle()
          The default style of a stripe.
 boolean isAutoAdjustPreferredSize()
          Whether to automatically adjust the preferred size upon creation.
 boolean isShareLabelModelParameterInstance()
          Whether to share label model parameter instances for a newly created stripe label.
 boolean isShareLabelStyleInstance()
          Whether to share style instances for a newly created stripe label.
 boolean isShareStyleInstance()
          Whether to share style instances for a newly created stripe.
 void setAutoAdjustPreferredSize(boolean autoAdjustPreferredSize)
          Sets whether to automatically adjust the preferred size upon creation.
 void setInsets(Insets insets)
          Sets the default insets for the stripe.
 void setLabelModelParameter(ILabelModelParameter labelModelParameter)
          Sets the default ILabelModelParameter.
 void setLabelStyle(ILabelStyle style)
          Sets the default style for a stripe label.
 void setMinimumSize(double minimumSize)
          The default minimum size for the stripe.
 void setShareLabelModelParameterInstance(boolean shareLabelModelParameterInstance)
          Sets whether to share label model parameter instances for a newly created stripe label.
 void setShareLabelStyleInstance(boolean shareStyleInstance)
          Sets whether to share style instances for a newly created stripe label.
 void setShareStyleInstance(boolean shareStyleInstance)
          Sets whether to share style instances for a newly created stripe.
 void setSize(double size)
          Sets the default size for the stripe.
 void setStyle(INodeStyle style)
          Sets the default style of a stripe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table.StripeDefaults

public Table.StripeDefaults()
Method Detail

getInsets

public Insets getInsets()
The default insets for the stripe.

Returns:
The default insets.

setInsets

public void setInsets(Insets insets)
Sets the default insets for the stripe.

Parameters:
insets - The default insets.

getMinimumSize

public double getMinimumSize()
The default minimum size for the stripe.

The size of a Column is its with, the size of a Row is its height.

Returns:
The default minimum size.

setMinimumSize

public void setMinimumSize(double minimumSize)
The default minimum size for the stripe.

The size of a Column is its with, the size of a Row is its height.

Parameters:
minimumSize - The default minimum size.

getStyle

public INodeStyle getStyle()
The default style of a stripe.

Returns:
The default style.

setStyle

public void setStyle(INodeStyle style)
Sets the default style of a stripe.

Parameters:
style - The default style.

getSize

public double getSize()
The default size for the stripe.

The size of a Column is its with, the size of a Row is its height.

Returns:
The default size.

setSize

public void setSize(double size)
Sets the default size for the stripe.

The size of a Column is its with, the size of a Row is its height.

Parameters:
size - The default size.

isShareStyleInstance

public boolean isShareStyleInstance()
Whether to share style instances for a newly created stripe.

If set to false the style for a newly created stripe will be cloned. At the server side this setting has no effect. It will, however, be transferred to the client.

Returns:
Whether to share style instances for a newly created stripe.

setShareStyleInstance

public void setShareStyleInstance(boolean shareStyleInstance)
Sets whether to share style instances for a newly created stripe.

If set to false the style for a newly created stripe will be cloned. At the server side this setting has no effect. It will, however, be transferred to the client.

Parameters:
shareStyleInstance - Whether to share style instances for a newly created stripe.

createMarkupExtension

public MarkupExtension createMarkupExtension(Lookup lookup)
Description copied from interface: IMarkupExtensionFactory
Creates a markup extension that can be used instead of the original class.

Specified by:
createMarkupExtension in interface IMarkupExtensionFactory
Parameters:
lookup - The lookup that shall be considered when creating the markup extension.

getLabelModelParameter

public ILabelModelParameter getLabelModelParameter()
The default ILabelModelParameter.

Returns:
The default label model parameter.

setLabelModelParameter

public void setLabelModelParameter(ILabelModelParameter labelModelParameter)
Sets the default ILabelModelParameter.

Parameters:
labelModelParameter - The default label model parameter.

getLabelStyle

public ILabelStyle getLabelStyle()
The default style for a stripe label.

Returns:
The default style.

setLabelStyle

public void setLabelStyle(ILabelStyle style)
Sets the default style for a stripe label.

Parameters:
style - The default style.

isAutoAdjustPreferredSize

public boolean isAutoAdjustPreferredSize()
Whether to automatically adjust the preferred size upon creation.

This setting has no effect at the server side. It will, however, be transferred to the client.

The default is true

Returns:
Whether to automatically adjust the preferred size upon creation.

setAutoAdjustPreferredSize

public void setAutoAdjustPreferredSize(boolean autoAdjustPreferredSize)
Sets whether to automatically adjust the preferred size upon creation.

This setting has no effect at the server side. It will, however, be transferred to the client.

The default is true

Parameters:
autoAdjustPreferredSize - Whether to automatically adjust the preferred size upon creation.

isShareLabelModelParameterInstance

public boolean isShareLabelModelParameterInstance()
Whether to share label model parameter instances for a newly created stripe label.

If set to false the label model parameter for a newly created stripe label will be cloned.

The default is true

Returns:
Whether to share label model parameter instances for a newly created stripe label.

setShareLabelModelParameterInstance

public void setShareLabelModelParameterInstance(boolean shareLabelModelParameterInstance)
Sets whether to share label model parameter instances for a newly created stripe label.

If set to false the label model parameter for a newly created stripe label will be cloned.

The default is true

Parameters:
shareLabelModelParameterInstance - Whether to share label model parameter instances for a newly created stripe label.

isShareLabelStyleInstance

public boolean isShareLabelStyleInstance()
Whether to share style instances for a newly created stripe label.

If set to false the style for a newly created stripe label will be cloned. At the server side this setting has no effect. It will, however, be transferred to the client.

The default is true

Returns:
Whether to share style instances for a newly created stripe label.

setShareLabelStyleInstance

public void setShareLabelStyleInstance(boolean shareStyleInstance)
Sets whether to share style instances for a newly created stripe label.

If set to false the style for a newly created stripe label will be cloned. At the server side this setting has no effect. It will, however, be transferred to the client.

The default is true

Parameters:
shareStyleInstance - Whether to share style instances for a newly created stripe label.


Copyright © 2000-2013 yWorks GmbH. All rights reserved