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 IStripeDefaults
setInsets(InsetsD)
public final ILabelDefaults getLabels()
IStripeDefaults
getLabels
in interface IStripeDefaults
IStripeDefaults.setLabels(ILabelDefaults)
public final double getMinimumSize()
getMinimumSize
in interface IStripeDefaults
IStripe.getMinimumSize()
,
setMinimumSize(double)
public final double getSize()
getSize
in interface IStripeDefaults
IStripe.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 IStripeDefaults
IStripeDefaults.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 IStripeDefaults
clone
of
or the Style
property, if StyleInstanceSharingEnabled
is
enabled.public final boolean isStyleInstanceSharingEnabled()
IStripeDefaults
Style
instance should be shared referentially or cloned
upon a call to IStripeDefaults.getStyleInstance()
.isStyleInstanceSharingEnabled
in interface IStripeDefaults
true
if the reference should be shared; false
otherwise.IStripeDefaults.getStyleInstance()
,
IStripeDefaults.getStyle()
,
IStripeDefaults.setStyleInstanceSharingEnabled(boolean)
public final void setInsets(InsetsD value)
setInsets
in interface IStripeDefaults
value
- The default insets.getInsets()
public final void setLabels(ILabelDefaults value)
IStripeDefaults
setLabels
in interface IStripeDefaults
value
- The label defaults.IStripeDefaults.getLabels()
public final void setMinimumSize(double value)
setMinimumSize
in interface IStripeDefaults
value
- The default minimum size of newly created stripes. Default value is 10IStripe.getMinimumSize()
,
getMinimumSize()
public final void setSize(double value)
setSize
in interface IStripeDefaults
value
- 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 IStripeDefaults
value
- The style to use as a template.IStripeDefaults.isStyleInstanceSharingEnabled()
,
IStripeDefaults.getStyle()
public final void setStyleInstanceSharingEnabled(boolean value)
IStripeDefaults
Style
instance should be shared referentially or cloned
upon a call to IStripeDefaults.getStyleInstance()
.setStyleInstanceSharingEnabled
in interface IStripeDefaults
value
- true
if the reference should be shared; false
otherwise.IStripeDefaults.getStyleInstance()
,
IStripeDefaults.getStyle()
,
IStripeDefaults.isStyleInstanceSharingEnabled()