public interface IStripeDefaults
ITable
and the like to declare and obtain the defaults for stripes and their labels.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 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 getStyleInstance() . |
InsetsD getInsets()
setInsets(InsetsD)
ILabelDefaults getLabels()
setLabels(ILabelDefaults)
double getMinimumSize()
IStripe.getMinimumSize()
,
setMinimumSize(double)
double getSize()
IStripe.getSize()
,
setSize(double)
IStripeStyle getStyle()
Depending on the setting of StyleInstanceSharingEnabled
, the getStyleInstance()
method should return a clone
of this instance or the very same
instance.
isStyleInstanceSharingEnabled()
,
setStyle(IStripeStyle)
IStripeStyle getStyleInstance()
Most implementations will yield either, a clone
of or the Style
property, if StyleInstanceSharingEnabled
is enabled, but they might use more
complicated logic, too.
clone
of
or the Style
property, if StyleInstanceSharingEnabled
is
enabled.boolean isStyleInstanceSharingEnabled()
Style
instance should be shared referentially or cloned
upon a call to getStyleInstance()
.true
if the reference should be shared; false
otherwise.getStyleInstance()
,
getStyle()
,
setStyleInstanceSharingEnabled(boolean)
void setInsets(InsetsD value)
value
- The default insets.getInsets()
void setLabels(ILabelDefaults value)
value
- The label defaults.getLabels()
void setMinimumSize(double value)
value
- The default minimum size of newly created stripes.IStripe.getMinimumSize()
,
getMinimumSize()
void setSize(double value)
value
- The default size of newly created stripe.IStripe.getSize()
,
getSize()
void setStyle(IStripeStyle value)
Depending on the setting of StyleInstanceSharingEnabled
, the getStyleInstance()
method should return a clone
of this instance or the very same
instance.
value
- The style to use as a template.isStyleInstanceSharingEnabled()
,
getStyle()
void setStyleInstanceSharingEnabled(boolean value)
Style
instance should be shared referentially or cloned
upon a call to getStyleInstance()
.value
- true
if the reference should be shared; false
otherwise.getStyleInstance()
,
getStyle()
,
isStyleInstanceSharingEnabled()