com.aspose.diagram
Class StyleSheet

java.lang.Object
    extended by com.aspose.diagram.StyleSheet

public class StyleSheet 
extends java.lang.Object

Represents a style defined in a document.


Constructor Summary
StyleSheet()
           Constructor.
 
Property Getters/Setters Summary
CharCollectiongetChars()
           Contains a collection of Char elements.
ConnectionABCDCollectiongetConnectionABCDs()
           Contains a collection of ConnectionABCD elements.
ConnectionCollectiongetConnections()
           Contains a collection of Connection elements.
EventgetEvent()
           Contains elements that specify formulas that control shape events.
FillgetFill()
           Contains the current fill formatting values for the shape and the shape's drop shadow, including pattern, foreground color, and background color.
StyleSheetgetFillStyle()
voidsetFillStyle(StyleSheet)
           StyleSheet element from which this style inherits fill formatting.
ForeigngetForeign()
           Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object's image is offset within its borders.
ForeignDatagetForeignData()
           Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
GroupgetGroup()
           Contains elements that control how you add shapes to a group, move members of a group, and select groups.
HelpgetHelp()
           Contains elements specifying the Shape element's Help file topic and copyright information.
intgetID()
voidsetID(int)
           The unique ID of the element within its parent element.
ImagegetImage()
           Contains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.
LayoutgetLayout()
           Contains elements that control shape placement and connector routing settings.
LinegetLine()
           Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine whether the line ends are formatted (for example, with an arrowhead), the size of line end formats, radius of the rounding circle applied to the line, and line cap style (round or square).
StyleSheetgetLineStyle()
voidsetLineStyle(StyleSheet)
           StyleSheet element from which this style inherits line formatting.
MiscgetMisc()
           Contains elements specifying the Shape element's Help file topic and copyright information.
java.lang.StringgetName()
voidsetName(java.lang.String)
           The name of the element.
java.lang.StringgetNameU()
voidsetNameU(java.lang.String)
           The universal name of the element.
PageLayoutgetPageLayout()
           Contains Diagram that control the page layout settings for shapes and connectors, such as spacing between all shapes on the page, spacing between all connectors on the page, and routing style for all connectors on the page.
ParaCollectiongetParas()
           Contains a collection of Para elements.
ProtectiongetProtection()
           Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in other circumstances. It also does not protect against changes made in the ShapeSheet window.
RulerGridgetRulerGrid()
           Contains elements that specify the settings of the page's rulers and grid.
StylePropgetStyleProp()
           Contains elements that control style behavior, such as whether a style includes text, line, and fill attributes.
TabsCollectiongetTabsCollection()
           Contains a collection of Tab elements.
TextBlockgetTextBlock()
           Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.
StyleSheetgetTextStyle()
voidsetTextStyle(StyleSheet)
           StyleSheet element from which this style inherits text formatting.
 
Method Summary
java.lang.ObjectdeepClone()
           Creates deep copy of this instance.
 

Constructor Detail

StyleSheet

public StyleSheet()
Constructor.

Property Getters/Setters Detail

getID/setID

public int getID() / public void setID(int value)
The unique ID of the element within its parent element.

getName/setName

public java.lang.String getName() / public void setName(java.lang.String value)
The name of the element.

getNameU/setNameU

public java.lang.String getNameU() / public void setNameU(java.lang.String value)
The universal name of the element.

getLineStyle/setLineStyle

public StyleSheet getLineStyle() / public void setLineStyle(StyleSheet value)
StyleSheet element from which this style inherits line formatting.

getFillStyle/setFillStyle

public StyleSheet getFillStyle() / public void setFillStyle(StyleSheet value)
StyleSheet element from which this style inherits fill formatting.

getTextStyle/setTextStyle

public StyleSheet getTextStyle() / public void setTextStyle(StyleSheet value)
StyleSheet element from which this style inherits text formatting.

getLine

public Line getLine()
Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine whether the line ends are formatted (for example, with an arrowhead), the size of line end formats, radius of the rounding circle applied to the line, and line cap style (round or square).

getFill

public Fill getFill()
Contains the current fill formatting values for the shape and the shape's drop shadow, including pattern, foreground color, and background color.

getEvent

public Event getEvent()
Contains elements that specify formulas that control shape events.

getStyleProp

public StyleProp getStyleProp()
Contains elements that control style behavior, such as whether a style includes text, line, and fill attributes.

getTextBlock

public TextBlock getTextBlock()
Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.

getProtection

public Protection getProtection()
Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in other circumstances. It also does not protect against changes made in the ShapeSheet window.

getHelp

public Help getHelp()
Contains elements specifying the Shape element's Help file topic and copyright information.

getMisc

public Misc getMisc()
Contains elements specifying the Shape element's Help file topic and copyright information.

getRulerGrid

public RulerGrid getRulerGrid()
Contains elements that specify the settings of the page's rulers and grid.

getImage

public Image getImage()
Contains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.

getGroup

public Group getGroup()
Contains elements that control how you add shapes to a group, move members of a group, and select groups.

getLayout

public Layout getLayout()
Contains elements that control shape placement and connector routing settings.

getPageLayout

public PageLayout getPageLayout()
Contains Diagram that control the page layout settings for shapes and connectors, such as spacing between all shapes on the page, spacing between all connectors on the page, and routing style for all connectors on the page.

getChars

public CharCollection getChars()
Contains a collection of Char elements.

getParas

public ParaCollection getParas()
Contains a collection of Para elements.

getTabsCollection

public TabsCollection getTabsCollection()
Contains a collection of Tab elements.

getConnections

public ConnectionCollection getConnections()
Contains a collection of Connection elements.

getConnectionABCDs

public ConnectionABCDCollection getConnectionABCDs()
Contains a collection of ConnectionABCD elements.

getForeign

public Foreign getForeign()
Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object's image is offset within its borders.

getForeignData

public ForeignData getForeignData()
Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

Method Detail

deepClone

public java.lang.Object deepClone()
                throws java.lang.Exception
Creates deep copy of this instance.
Returns:

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.