com.aspose.slides
Class OverrideTheme

java.lang.Object
  extended by com.aspose.slides.Theme
      extended by com.aspose.slides.OverrideTheme
All Implemented Interfaces:
IOverrideTheme, IPresentationComponent, ITheme

public class OverrideTheme
extends Theme
implements IOverrideTheme

Represents a overriding theme.


Method Summary
 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.
 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.
 
Methods inherited from class com.aspose.slides.Theme
getParent_Immediate, getPresentation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aspose.slides.IPresentationComponent
getPresentation
 

Method Detail

initColorScheme

public void initColorScheme()

Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.

Specified by:
initColorScheme in interface IOverrideTheme
Throws:
com.aspose.ms.System.InvalidOperationException - Thrown if the ColorScheme is already initialized (not null).

initColorSchemeFrom

public void initColorSchemeFrom(IColorScheme colorScheme)

Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.

Specified by:
initColorSchemeFrom in interface IOverrideTheme
Parameters:
colorScheme - Data to initialize from.
Throws:
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.

initColorSchemeFromInherited

public 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.

Specified by:
initColorSchemeFromInherited in interface IOverrideTheme
Throws:
com.aspose.ms.System.InvalidOperationException - Thrown if the ColorScheme is already initialized (not null).

initFontScheme

public void initFontScheme()

Init FontScheme with new object for overriding FontScheme of InheritedTheme.

Specified by:
initFontScheme in interface IOverrideTheme
Throws:
com.aspose.ms.System.InvalidOperationException - Thrown if the FontScheme is already initialized (not null).

initFontSchemeFrom

public void initFontSchemeFrom(IFontScheme fontScheme)

Init FontScheme with new object for overriding FontScheme of InheritedTheme.

Specified by:
initFontSchemeFrom in interface IOverrideTheme
Parameters:
fontScheme - Data to initialize from.
Throws:
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.

initFontSchemeFromInherited

public 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.

Specified by:
initFontSchemeFromInherited in interface IOverrideTheme
Throws:
com.aspose.ms.System.InvalidOperationException - Thrown if the FontScheme is already initialized (not null).

initFormatScheme

public void initFormatScheme()

Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.

Specified by:
initFormatScheme in interface IOverrideTheme
Throws:
com.aspose.ms.System.InvalidOperationException - Thrown if the FormatScheme is already initialized (not null).

initFormatSchemeFrom

public void initFormatSchemeFrom(IFormatScheme formatScheme)

Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.

Specified by:
initFormatSchemeFrom in interface IOverrideTheme
Parameters:
formatScheme - Data to initialize from.
Throws:
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.

initFormatSchemeFromInherited

public 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.

Specified by:
initFormatSchemeFromInherited in interface IOverrideTheme
Throws:
com.aspose.ms.System.InvalidOperationException - Thrown if the FormatScheme is already initialized (not null).

getColorScheme

public IColorScheme getColorScheme()

Returns the color scheme. Read-only IColorScheme.

Specified by:
getColorScheme in interface ITheme
Specified by:
getColorScheme in class Theme

getFontScheme

public IFontScheme getFontScheme()

Returns the font scheme. Read-only IFontScheme.

Specified by:
getFontScheme in interface ITheme
Specified by:
getFontScheme in class Theme

getFormatScheme

public IFormatScheme getFormatScheme()

Returns the shape format scheme. Read-only IFormatScheme.

Specified by:
getFormatScheme in interface ITheme
Specified by:
getFormatScheme in class Theme

isEmpty

public boolean isEmpty()

True value means that ColorScheme, FontScheme, FormatScheme is null and any overriding with this theme object are disabled. Read-only boolean.

Specified by:
isEmpty in interface IOverrideTheme

clear

public void clear()

Set ColorScheme, FontScheme, FormatScheme to null to disable any overriding with this theme object.

Specified by:
clear in interface IOverrideTheme


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.