|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.parsers.svg.SVGElement
net.sf.latexdraw.parsers.svg.SVGLinearGradientElement
public class SVGLinearGradientElement
Defines the SVG tag linearGradient
.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
10/04/07
Field Summary |
---|
Fields inherited from class net.sf.latexdraw.parsers.svg.SVGElement |
---|
attributes, children, name, ownerDocument, parent, stylesCSS, transform |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
SVGLinearGradientElement(org.w3c.dom.Node n,
SVGElement p)
SVGElement.SVGElement(Node, SVGElement) |
|
SVGLinearGradientElement(SVGDocument owner)
Creates an simple SVGLinearGradientElement with the owner document. |
Method Summary | |
---|---|
boolean |
checkAttributes()
Check if the SVG element is valid according to the SVG specification. |
boolean |
enableRendering()
According to the SVG specification, some attributes may lead to disables rendering of the element (e.g. width=0, height=0,...). |
double |
getAngle()
|
java.awt.Color |
getEndColor()
|
java.lang.String |
getGradientUnits()
|
double |
getMiddlePoint()
|
java.lang.String |
getSpreadMethod()
Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle. |
java.awt.Color |
getStartColor()
|
double |
getX1()
|
double |
getX2()
|
double |
getY1()
|
double |
getY2()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SVGLinearGradientElement(org.w3c.dom.Node n, SVGElement p) throws MalformedSVGDocument
SVGElement.SVGElement(Node, SVGElement)
MalformedSVGDocument
public SVGLinearGradientElement(SVGDocument owner)
owner
- The owner document.
java.lang.IllegalArgumentException
- If owner is null.Method Detail |
---|
public boolean checkAttributes()
SVGElement
checkAttributes
in class SVGElement
public boolean enableRendering()
SVGElement
enableRendering
in class SVGElement
public java.lang.String getGradientUnits()
public double getX1()
public double getY1()
public double getX2()
public double getY2()
public java.awt.Color getStartColor()
public java.awt.Color getEndColor()
public double getMiddlePoint()
public double getAngle()
public java.lang.String getSpreadMethod()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |