| com.sun.perseus.model.GraphicsNode
All known Subclasses: com.sun.perseus.model.CompositeGraphicsNode,
GraphicsNode | public interface GraphicsNode extends DecoratedNode,GraphicsProperties(Code) | | GraphicsNode is the interface that all ModelNode
(see
com.sun.perseus.model.ModelNode ModelNode ) which correspond
to graphical content implement.
GraphicsNode s have a notion of visibility and display. If a
node is not displayed, then it does not paint and none of its
children (if present) are painted. If a node is invisible, then it does
no paint itself, but it paints it's children. In other words, it a node
is invisible, its chidren may be visible (depending on the children's
own visibility setting), but if a node is not displayed,
then its children are not displayed either, no matter what their own
display setting is. This corresponds to the CSS 2 concept of visibility
and display.
IMPORTANT NOTE: Setting a property on a GraphicsNode
automatically sets the inherited and color relative flags to false.
See Also: ModelNode version: $Id: GraphicsNode.java,v 1.5 2006/06/29 10:47:31 ln156897 Exp $ |
Method Summary | |
boolean | isColorRelative(int propertyIndex) Parameters: propertyIndex - index of the property to check true if the input property is color relative. | boolean | isColorRelativeProperty(int propertyIndex) Returns true if the input property can be color-relative.
Parameters: propertyIndex - the index of the property which may be color-relative. | void | setColorRelative(int propertyIndex, boolean isColorRelative) Sets the input property as a color-relative property. |
DEFAULT_COLOR_RELATIVE | int DEFAULT_COLOR_RELATIVE(Code) | | Default color relative (Y=yes, N=no):
- N fill
- N stroke
- N color
- N fill rule
- N stroke width
- N line join
- N line cap
- N miter limit
- N dash array
- N dash offset
- N display
- N visibility
- N fill opacity
- N stroke opacity
- N opacity
|
DEFAULT_INHERITANCE | int DEFAULT_INHERITANCE(Code) | | Default inheritance setting (Y=yes, N=no):
- Y fill
- Y stroke
- Y color
- Y fill rule
- Y stroke width
- Y line join
- Y line cap
- Y miter limit
- Y dash array
- Y dash offset
- N display
- Y visibility
- Y fill opacity
- Y stroke opacity
- N opacity
|
NUMBER_OF_PROPERTIES | int NUMBER_OF_PROPERTIES(Code) | | Number of properties in a GraphicsNode
|
isColorRelative | boolean isColorRelative(int propertyIndex)(Code) | | Parameters: propertyIndex - index of the property to check true if the input property is color relative. Falseotherwise See Also: GraphicsNode.setColorRelative |
isColorRelativeProperty | boolean isColorRelativeProperty(int propertyIndex)(Code) | | Returns true if the input property can be color-relative.
Parameters: propertyIndex - the index of the property which may be color-relative. true if the input property can be color relative. False otherwise. |
setColorRelative | void setColorRelative(int propertyIndex, boolean isColorRelative)(Code) | | Sets the input property as a color-relative property. There are
two color-relative properties on a GraphicsNode :
fill and stroke . For all other properties,
setting the property as color relative should not have effect.
For fill and stroke , setting them as
color relative means that the color property should
be used for the corresponding fill or draw operations.
Parameters: propertyIndex - index of the property Parameters: isColorRelative - the new state fot the property's color relativevalue. |
|
|