JGraph X 1.4.1.0


com.mxgraph.io.vdx
Class mxStyleSheet

java.lang.Object
  extended by com.mxgraph.io.vdx.mxGeneralShape
      extended by com.mxgraph.io.vdx.mxDelegateShape
          extended by com.mxgraph.io.vdx.mxStyleSheet

public class mxStyleSheet
extends mxDelegateShape

This class is a wrapper for a stylesheet element.
The Stylesheet element is treated like a shape element.
If a property is not found in the shape element but it may be found in a stylesheet, the property is searched in such stylesheet.
All method that recieve a index like param ignores it. Stylesheets only have one element of each class.


Field Summary
 
Fields inherited from class com.mxgraph.io.vdx.mxDelegateShape
fillStyle, lineStyle, textStyle
 
Fields inherited from class com.mxgraph.io.vdx.mxGeneralShape
shape
 
Constructor Summary
mxStyleSheet(Element s)
           
 
Method Summary
 String getFlags(String paraIX)
          Returns the flags of one paragraph.
 int getHorizontalAlign(String paraIX)
          Returns the horizontal align property of text
 String getIndentFirst(String paraIX)
          Returns the first indent of one paragraph in pixels.
 String getIndentLeft(String paraIX)
          Returns the indent to left of one paragraph
 String getIndentRight(String paraIX)
          Returns the indent to right of one paragraph
 String getLetterSpace(String paraIX)
          Returns the space between characters in one text fragment.
 String getRTLText(String paraIX)
          Returns the direction of one text fragment.
 String getSpAfter(String paraIX)
          Returns the space after one paragraph
 String getSpBefore(String paraIX)
          Returns the space before one paragraph.
 double getSpLine(String paraIX)
          Returns the space between lines in one paragraph.
 String getTextColor(String charIX)
          Returns the color of one text fragment
 String getTextFont(String charIX)
          Returns the font of one text fragment
 String getTextSize(String charIX)
          Returns the size of one text fragment in pixels.
 boolean getTextStrike(String charIX)
          Checks if one text fragment is Strikethru
 String getTextStyle(String charIX)
          Returns the style of one text fragment.
 boolean hasFlags(String paraIX)
          Checks if the flags of one paragraph is defined.
 boolean hasHorizontalAlign(String paraIX)
          Checks if the horizontal align of text is defined
 boolean hasIndentFirst(String paraIX)
          Checks if the first indent of one paragraph is defined
 boolean hasIndentLeft(String paraIX)
          Checks if the indent to left of one paragraph is defined
 boolean hasIndentRight(String paraIX)
          Checks if the indent to right of one paragraph is defined
 boolean hasLetterSpace(String paraIX)
          Checks if the space between characters in one text fragment is defined.
 boolean hasSpAfter(String paraIX)
          Checks if the space after one paragraph is defined
 boolean hasSpBefore(String paraIX)
          Checks if the space before one paragraph is defined
 boolean hasSpLine(String paraIX)
          Checks if the space between lines in one paragraph is defined
 boolean hasTextFont(String charIX)
          Checks if the font of one text fragment is defined
 boolean hasTextPos(String charIX)
          Checks if the position of one text fragment is defined
 boolean hasTextSize(String charIX)
          Checks if the size of one text fragment is defined.
 boolean hasTextStrike(String charIX)
          Checks if the strikethru of one text fragment is defined
 boolean hasTextStyle(String charIX)
          Checks if the style of one text fragment is defined.
 
Methods inherited from class com.mxgraph.io.vdx.mxDelegateShape
getBeginArrow, getBeginArrowSize, getEndArrow, getEndArrowSize, getFillColor, getFillForeColor, getFillPattern, getLineColor, getLinePattern, getLineWeight, getRounding, getShdwPattern, getTextBkgndColor, getTextBottomMargin, getTextLeftMargin, getTextPos, getTextRightMargin, getTextTopMargin, getTransparence, getVerticalAlign, hasBeginArrow, hasBeginArrowSize, hasEndArrow, hasEndArrowSize, hasFillColor, hasFillForeColor, hasFillPattern, hasLineColor, hasLinePattern, hasLineWeight, hasRounding, hasRTLText, hasShdwPattern, hasTextBkgndColor, hasTextBottomMargin, hasTextColor, hasTextLeftMargin, hasTextRightMargin, hasTextTopMargin, hasTransparence, hasVerticalAlign
 
Methods inherited from class com.mxgraph.io.vdx.mxGeneralShape
getAmountArcTo, getAmountConnection, getAmountEllipticalArcTo, getAmountLineTo, getAngle, getBeginXY, getBullet, getEndXY, getFillStyleId, getHeight, getId, getLineStyleId, getLineToXY, getLocPinX, getLocPinY, getNameU, getNumericalValueOfSecundaryTag, getPinX, getPinY, getPrimaryTag, getPrimaryTagIndexed, getRoutingPoints, getShape, getText, getTextCase, getTextChildrens, getTextStyleId, getTxtAngle, getValueOfSecundaryTag, getWidth, hasAngle, hasBullet, hasEllipse, hasHeight, hasLocPinX, hasLocPinY, hasPinX, hasPinY, hasPrimaryTag, hasSecundaryTag, hasText, hasTextCase, hasTxtAngle, hasWidth, hasXForm1D, setShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxStyleSheet

public mxStyleSheet(Element s)
Method Detail

getFlags

public String getFlags(String paraIX)
Description copied from class: mxGeneralShape
Returns the flags of one paragraph.

Overrides:
getFlags in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element.
Returns:
String value of the Flags element.

getHorizontalAlign

public int getHorizontalAlign(String paraIX)
Description copied from class: mxGeneralShape
Returns the horizontal align property of text

Overrides:
getHorizontalAlign in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Integer value of the HorizontalAlign element.

getIndentFirst

public String getIndentFirst(String paraIX)
Description copied from class: mxGeneralShape
Returns the first indent of one paragraph in pixels.

Overrides:
getIndentFirst in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the IndentFirst element.

getIndentLeft

public String getIndentLeft(String paraIX)
Description copied from class: mxGeneralShape
Returns the indent to left of one paragraph

Overrides:
getIndentLeft in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the IndentLeft element.

getIndentRight

public String getIndentRight(String paraIX)
Description copied from class: mxGeneralShape
Returns the indent to right of one paragraph

Overrides:
getIndentRight in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the IndentRight element.

getLetterSpace

public String getLetterSpace(String paraIX)
Description copied from class: mxGeneralShape
Returns the space between characters in one text fragment.

Overrides:
getLetterSpace in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element.
Returns:
String representation of the numerical value of the Letterspace element.

getRTLText

public String getRTLText(String paraIX)
Description copied from class: mxGeneralShape
Returns the direction of one text fragment.

Overrides:
getRTLText in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element.
Returns:
String value of the RTLText.

getSpAfter

public String getSpAfter(String paraIX)
Description copied from class: mxGeneralShape
Returns the space after one paragraph

Overrides:
getSpAfter in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the SpAfter element.

getSpBefore

public String getSpBefore(String paraIX)
Description copied from class: mxGeneralShape
Returns the space before one paragraph.

Overrides:
getSpBefore in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
String representation of the numerical value of the SpBefore element.

getSpLine

public double getSpLine(String paraIX)
Description copied from class: mxGeneralShape
Returns the space between lines in one paragraph.

Overrides:
getSpLine in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element.
Returns:
Double representation of the value of the SpLine element.

getTextColor

public String getTextColor(String charIX)
Description copied from class: mxGeneralShape
Returns the color of one text fragment

Overrides:
getTextColor in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Text color in hexadecimal representation.

getTextFont

public String getTextFont(String charIX)
Description copied from class: mxGeneralShape
Returns the font of one text fragment

Overrides:
getTextFont in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Name of the font.

getTextSize

public String getTextSize(String charIX)
Description copied from class: mxGeneralShape
Returns the size of one text fragment in pixels.

Overrides:
getTextSize in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
String representation of the numerical value of the Size element.

getTextStrike

public boolean getTextStrike(String charIX)
Description copied from class: mxGeneralShape
Checks if one text fragment is Strikethru

Overrides:
getTextStrike in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if one text fragment is Strikethru

getTextStyle

public String getTextStyle(String charIX)
Description copied from class: mxGeneralShape
Returns the style of one text fragment.

Overrides:
getTextStyle in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
String value of the Style element.

hasFlags

public boolean hasFlags(String paraIX)
Description copied from class: mxGeneralShape
Checks if the flags of one paragraph is defined.

Overrides:
hasFlags in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element.
Returns:
Returns true if the flags of one paragraph is defined.

hasHorizontalAlign

public boolean hasHorizontalAlign(String paraIX)
Description copied from class: mxGeneralShape
Checks if the horizontal align of text is defined

Overrides:
hasHorizontalAlign in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the horizontal align of text is defined.

hasIndentFirst

public boolean hasIndentFirst(String paraIX)
Description copied from class: mxGeneralShape
Checks if the first indent of one paragraph is defined

Overrides:
hasIndentFirst in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the first indent of one paragraph is defined.

hasIndentLeft

public boolean hasIndentLeft(String paraIX)
Description copied from class: mxGeneralShape
Checks if the indent to left of one paragraph is defined

Overrides:
hasIndentLeft in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the indent to left of one paragraph is defined.

hasIndentRight

public boolean hasIndentRight(String paraIX)
Description copied from class: mxGeneralShape
Checks if the indent to right of one paragraph is defined

Overrides:
hasIndentRight in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the indent to right of one paragraph is defined.

hasLetterSpace

public boolean hasLetterSpace(String paraIX)
Description copied from class: mxGeneralShape
Checks if the space between characters in one text fragment is defined.

Overrides:
hasLetterSpace in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element.
Returns:
Returns true if the space between characters in one text fragment is defined.

hasSpAfter

public boolean hasSpAfter(String paraIX)
Description copied from class: mxGeneralShape
Checks if the space after one paragraph is defined

Overrides:
hasSpAfter in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the space after one paragraph is defined.

hasSpBefore

public boolean hasSpBefore(String paraIX)
Description copied from class: mxGeneralShape
Checks if the space before one paragraph is defined

Overrides:
hasSpBefore in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the space before one paragraph is defined.

hasSpLine

public boolean hasSpLine(String paraIX)
Description copied from class: mxGeneralShape
Checks if the space between lines in one paragraph is defined

Overrides:
hasSpLine in class mxDelegateShape
Parameters:
paraIX - IX atribute of Para element
Returns:
Returns true if the space between lines in one paragraph is defined.

hasTextFont

public boolean hasTextFont(String charIX)
Description copied from class: mxGeneralShape
Checks if the font of one text fragment is defined

Overrides:
hasTextFont in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the font of one text fragment is defined.

hasTextPos

public boolean hasTextPos(String charIX)
Description copied from class: mxGeneralShape
Checks if the position of one text fragment is defined

Overrides:
hasTextPos in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the position of one text fragment is defined.

hasTextSize

public boolean hasTextSize(String charIX)
Description copied from class: mxGeneralShape
Checks if the size of one text fragment is defined.

Overrides:
hasTextSize in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the size of one text fragment is defined.

hasTextStrike

public boolean hasTextStrike(String charIX)
Description copied from class: mxGeneralShape
Checks if the strikethru of one text fragment is defined

Overrides:
hasTextStrike in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the strikethru of one text fragment is defined

hasTextStyle

public boolean hasTextStyle(String charIX)
Description copied from class: mxGeneralShape
Checks if the style of one text fragment is defined.

Overrides:
hasTextStyle in class mxDelegateShape
Parameters:
charIX - IX atribute of Char element
Returns:
Returns true if the style of one text fragment is defined.

JGraph X 1.4.1.0


Copyright (c) 2010 Gaudenz Alder. All rights reserved.