net.xoetrope.optional.svg
Class XSvgElementState
java.lang.Object
net.xoetrope.optional.svg.XSvgElementState
public class XSvgElementState
- extends java.lang.Object
Manages the visibility of a svg element
Copyright (c) Xoetrope 2001-2006, see license.txt for more details
Constructor Summary |
XSvgElementState()
Creates a new instance of XSvgElementState |
Method Summary |
void |
setup(com.kitfox.svg.SVGDiagram diagram,
java.lang.String id)
Setup the svg element wrapper |
boolean |
setVisible(boolean visible)
Change the visibility of the element if the requested visibility differs
from the current state |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
element
public com.kitfox.svg.SVGElement element
hidden
public boolean hidden
elementName
public java.lang.String elementName
XSvgElementState
public XSvgElementState()
- Creates a new instance of XSvgElementState
setup
public void setup(com.kitfox.svg.SVGDiagram diagram,
java.lang.String id)
- Setup the svg element wrapper
- Parameters:
diagram
- the svg diagram that owns the elementid
- the id of the element/layer
setVisible
public boolean setVisible(boolean visible)
- Change the visibility of the element if the requested visibility differs
from the current state
- Parameters:
visible
- true to make the element visible
- Returns:
- true if the visiblity state has changed