public class OverrideTheme extends Theme implements IOverrideTheme
Represents a overriding theme.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Set ColorScheme, FontScheme, FormatScheme to null to disable any overriding with this theme object.
|
IColorScheme |
getColorScheme()
Returns the color scheme.
|
IFontScheme |
getFontScheme()
Returns the font scheme.
|
IFormatScheme |
getFormatScheme()
Returns the shape format scheme.
|
long |
getVersion()
Version.
|
void |
initColorScheme()
Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.
|
void |
initColorSchemeFrom(IColorScheme colorScheme)
Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.
|
void |
initColorSchemeFromInherited()
Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.
|
void |
initFontScheme()
Init FontScheme with new object for overriding FontScheme of InheritedTheme.
|
void |
initFontSchemeFrom(IFontScheme fontScheme)
Init FontScheme with new object for overriding FontScheme of InheritedTheme.
|
void |
initFontSchemeFromInherited()
Init FontScheme with new object for overriding FontScheme of InheritedTheme.
|
void |
initFormatScheme()
Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.
|
void |
initFormatSchemeFrom(IFormatScheme formatScheme)
Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.
|
void |
initFormatSchemeFromInherited()
Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.
|
boolean |
isEmpty()
True value means that ColorScheme, FontScheme, FormatScheme is null and any overriding with this theme object are disabled.
|
getEffective, getParent_Immediate, getParent_IPresentationComponent, getPresentation
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEffective
getPresentation
public final void initColorScheme()
Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.
initColorScheme
in interface IOverrideTheme
com.aspose.ms.System.InvalidOperationException
- Thrown if the ColorScheme is already initialized (not null).public final void initColorSchemeFrom(IColorScheme colorScheme)
Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.
initColorSchemeFrom
in interface IOverrideTheme
colorScheme
- Data to initialize from.com.aspose.ms.System.InvalidOperationException
- Thrown if the ColorScheme is already initialized (not null).com.aspose.ms.System.ArgumentNullException
- Thrown if the colorScheme parameter is null.public final void initColorSchemeFromInherited()
Init ColorScheme with new object for overriding ColorScheme of InheritedTheme. And initialize data of this new object with data of the ColorScheme of InheritedTheme.
initColorSchemeFromInherited
in interface IOverrideTheme
com.aspose.ms.System.InvalidOperationException
- Thrown if the ColorScheme is already initialized (not null).public final void initFontScheme()
Init FontScheme with new object for overriding FontScheme of InheritedTheme.
initFontScheme
in interface IOverrideTheme
com.aspose.ms.System.InvalidOperationException
- Thrown if the FontScheme is already initialized (not null).public final void initFontSchemeFrom(IFontScheme fontScheme)
Init FontScheme with new object for overriding FontScheme of InheritedTheme.
initFontSchemeFrom
in interface IOverrideTheme
fontScheme
- Data to initialize from.com.aspose.ms.System.InvalidOperationException
- Thrown if the FontScheme is already initialized (not null).com.aspose.ms.System.ArgumentNullException
- Thrown if the fontScheme parameter is null.public final void initFontSchemeFromInherited()
Init FontScheme with new object for overriding FontScheme of InheritedTheme. And initialize data of this new object with data of the FontScheme of InheritedTheme.
initFontSchemeFromInherited
in interface IOverrideTheme
com.aspose.ms.System.InvalidOperationException
- Thrown if the FontScheme is already initialized (not null).public final void initFormatScheme()
Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.
initFormatScheme
in interface IOverrideTheme
com.aspose.ms.System.InvalidOperationException
- Thrown if the FormatScheme is already initialized (not null).public final void initFormatSchemeFrom(IFormatScheme formatScheme)
Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.
initFormatSchemeFrom
in interface IOverrideTheme
formatScheme
- Data to initialize from.com.aspose.ms.System.InvalidOperationException
- Thrown if the FormatScheme is already initialized (not null).com.aspose.ms.System.ArgumentNullException
- Thrown if the formatScheme parameter is null.public final void initFormatSchemeFromInherited()
Init FormatScheme with new object for overriding FormatScheme of InheritedTheme. And initialize data of this new object with data of the FormatScheme of InheritedTheme.
initFormatSchemeFromInherited
in interface IOverrideTheme
com.aspose.ms.System.InvalidOperationException
- Thrown if the FormatScheme is already initialized (not null).public IColorScheme getColorScheme()
Returns the color scheme.
Read-only IColorScheme
.
getColorScheme
in interface ITheme
getColorScheme
in class Theme
public IFontScheme getFontScheme()
Returns the font scheme.
Read-only IFontScheme
.
getFontScheme
in interface ITheme
getFontScheme
in class Theme
public IFormatScheme getFormatScheme()
Returns the shape format scheme.
Read-only IFormatScheme
.
getFormatScheme
in interface ITheme
getFormatScheme
in class Theme
public final boolean isEmpty()
True value means that ColorScheme, FontScheme, FormatScheme is null and any overriding with this theme object are disabled.
Read-only boolean
.
isEmpty
in interface IOverrideTheme
public final void clear()
Set ColorScheme, FontScheme, FormatScheme to null to disable any overriding with this theme object.
clear
in interface IOverrideTheme
public long getVersion()
Version.
Read-only long
.
getVersion
in class Theme