|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.markup.Tag
cox.jmatt.java.MathTools.markup.svg.StyleTag
cox.jmatt.java.MathTools.markup.svg.GradientTag
public class GradientTag
This class provides both <linearGradient> and <radialGradient> tags. Tag-speciic methods affect only tags of that type. Although this class
does extend StyleTag
, only the defaults and methods related to transforms should be used.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cox.jmatt.java.MathTools.markup.svg.StyleTag |
---|
StyleTag.TagKeys |
Field Summary |
---|
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag |
---|
myTagName |
Constructor Summary | |
---|---|
GradientTag()
Standard constructor for a linear gradient. |
Method Summary | |
---|---|
protected java.lang.String |
_content()
Implemented to handle stops and other internal content. |
protected void |
_setContent(java.lang.String pContent)
Implemented to receive copied content and reset() function. |
GradientTag |
addStop(double pOffset,
java.lang.String pColor,
java.lang.Double pOpacity)
Add a <stop> element to the gradient. |
GradientTag |
copyOf()
Create and return a copy of this gradient. |
GradientTag |
setAsRadial(boolean isRadial)
By default gradient tags are linear. |
GradientTag |
setCircle(java.lang.Double pCX,
java.lang.Double pCY,
java.lang.Double pRad)
Set the transition circle for a (radial) gradient that does not completely fill its designated area. |
GradientTag |
setFocus(java.lang.Double pFX,
java.lang.Double pFY)
Set the focal point of the (radial) gradient if it is not the center. |
GradientTag |
setSpreadMethod(char pValue)
Determine how a 'shortened' gradient will spread outside its defined transition area. |
GradientTag |
setTransitionLine(java.lang.Double pX1,
java.lang.Double pY1,
java.lang.Double pX2,
java.lang.Double pY2)
Set the transition line for a linear gradient that doesn't completely fill its designated area. |
Methods inherited from class cox.jmatt.java.MathTools.markup.svg.StyleTag |
---|
_configureTag, _enableCopy, canHaveDefs, isInDefs, setDefaultPen, setDefaultStyle, setDefaultTransform, setPen, setStyle, setTransform |
Methods inherited from class cox.jmatt.java.MathTools.markup.Tag |
---|
_addAttribute, _addAttributes, _addNAttribute, _asBoolean, _asDouble, _asInt, _attributes, _clampNAttribute, _clampNAttribute, _fixKey, _setEnableXMLTag, badPizza, closeTag, configureTag, configureTagFromGlobalPizza, makeTag, openTag, reset, setID, toString, validString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GradientTag()
Method Detail |
---|
public GradientTag setAsRadial(boolean isRadial)
protected java.lang.String _content()
_content
in class Tag
protected void _setContent(java.lang.String pContent)
reset()
function.
_setContent
in class Tag
public final GradientTag copyOf()
public GradientTag addStop(double pOffset, java.lang.String pColor, java.lang.Double pOpacity)
pOffset
- The (percent) value at which the color stop is to occur.pColor
- The color value at this stop.pOpacity
- The opacity value at this stop or null to omit. If present, it must be between 0.0 and 1.0.public GradientTag setSpreadMethod(char pValue)
Determine how a 'shortened' gradient will spread outside its defined transition area. Since there are only three values, the argument passed is char.
public GradientTag setTransitionLine(java.lang.Double pX1, java.lang.Double pY1, java.lang.Double pX2, java.lang.Double pY2)
public GradientTag setCircle(java.lang.Double pCX, java.lang.Double pCY, java.lang.Double pRad)
pCX
- The X-coordinate of the center.pCY
- The Y-coordinate of the center.pRad
- The radius of the transition area.public GradientTag setFocus(java.lang.Double pFX, java.lang.Double pFY)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |