public class StripeDefaults extends Object implements IStripeDefaults
IStripeDefaults interface.| Constructor and Description |
|---|
StripeDefaults()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InsetsD |
getInsets()
Gets the default insets for a stripe.
|
ILabelDefaults |
getLabels()
Gets the defaults for labels at stripes.
|
double |
getMinimumSize()
Gets the default minimum stripe size.
|
double |
getSize()
Gets the default stripe size.
|
IStripeStyle |
getStyle()
Gets the style to use for stripes.
|
IStripeStyle |
getStyleInstance()
Factory method that returns a style instance for use with newly created stripes.
|
boolean |
isStyleInstanceSharingEnabled()
Gets a value indicating whether the
Style instance should be shared referentially or cloned
upon a call to IStripeDefaults.getStyleInstance(). |
void |
setInsets(InsetsD value)
Sets the default insets for a stripe.
|
void |
setLabels(ILabelDefaults value)
Sets the defaults for labels at stripes.
|
void |
setMinimumSize(double value)
Sets the default minimum stripe size.
|
void |
setSize(double value)
Sets the default stripe size.
|
void |
setStyle(IStripeStyle value)
Sets the style to use for stripes.
|
void |
setStyleInstanceSharingEnabled(boolean value)
Sets a value indicating whether the
Style instance should be shared referentially or cloned
upon a call to IStripeDefaults.getStyleInstance(). |
public StripeDefaults()
This constructor sets the style to VoidNodeStyle.INSTANCE and the insets to
InsetsD.EMPTY
public final InsetsD getInsets()
getInsets in interface IStripeDefaultssetInsets(InsetsD)public final ILabelDefaults getLabels()
IStripeDefaultsgetLabels in interface IStripeDefaultsIStripeDefaults.setLabels(ILabelDefaults)public final double getMinimumSize()
getMinimumSize in interface IStripeDefaultsIStripe.getMinimumSize(),
setMinimumSize(double)public final double getSize()
getSize in interface IStripeDefaultsIStripe.getSize(),
setSize(double)public final IStripeStyle getStyle()
IStripeDefaults
Depending on the setting of StyleInstanceSharingEnabled, the IStripeDefaults.getStyleInstance()
method should return a clone of this instance or the very same
instance.
getStyle in interface IStripeDefaultsIStripeDefaults.isStyleInstanceSharingEnabled(),
IStripeDefaults.setStyle(IStripeStyle)public IStripeStyle getStyleInstance()
IStripeDefaults
Most implementations will yield either, a clone of or the Style
property, if StyleInstanceSharingEnabled is enabled, but they might use more
complicated logic, too.
getStyleInstance in interface IStripeDefaultsclone of
or the Style property, if StyleInstanceSharingEnabled is
enabled.public final boolean isStyleInstanceSharingEnabled()
IStripeDefaultsStyle instance should be shared referentially or cloned
upon a call to IStripeDefaults.getStyleInstance().isStyleInstanceSharingEnabled in interface IStripeDefaultstrue if the reference should be shared; false otherwise.IStripeDefaults.getStyleInstance(),
IStripeDefaults.getStyle(),
IStripeDefaults.setStyleInstanceSharingEnabled(boolean)public final void setInsets(InsetsD value)
setInsets in interface IStripeDefaultsvalue - The default insets.getInsets()public final void setLabels(ILabelDefaults value)
IStripeDefaultssetLabels in interface IStripeDefaultsvalue - The label defaults.IStripeDefaults.getLabels()public final void setMinimumSize(double value)
setMinimumSize in interface IStripeDefaultsvalue - The default minimum size of newly created stripes. Default value is 10IStripe.getMinimumSize(),
getMinimumSize()public final void setSize(double value)
setSize in interface IStripeDefaultsvalue - The default size of newly created stripe. Default value is 100IStripe.getSize(),
getSize()public final void setStyle(IStripeStyle value)
IStripeDefaults
Depending on the setting of StyleInstanceSharingEnabled, the IStripeDefaults.getStyleInstance()
method should return a clone of this instance or the very same
instance.
setStyle in interface IStripeDefaultsvalue - The style to use as a template.IStripeDefaults.isStyleInstanceSharingEnabled(),
IStripeDefaults.getStyle()public final void setStyleInstanceSharingEnabled(boolean value)
IStripeDefaultsStyle instance should be shared referentially or cloned
upon a call to IStripeDefaults.getStyleInstance().setStyleInstanceSharingEnabled in interface IStripeDefaultsvalue - true if the reference should be shared; false otherwise.IStripeDefaults.getStyleInstance(),
IStripeDefaults.getStyle(),
IStripeDefaults.isStyleInstanceSharingEnabled()