public class IlpGraphicRendererContext extends Object
Constructor and Description |
---|
IlpGraphicRendererContext(boolean selected,
boolean expanded,
boolean focus,
boolean showChildren)
Creates a renderer context with the given initial information.
|
IlpGraphicRendererContext(IlpGraphicView view,
IlpRepresentationObject ro,
IlpAttribute attribute,
boolean selected,
boolean expanded,
boolean focus,
boolean showChildren)
Creates a renderer context with the given initial information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
displayChildren()
Returns whether the child objects of the object being rendered
will be displayed.
|
boolean |
equals(Object other)
Compares two objects.
|
Object |
getProperty(Object key)
Deprecated.
|
Object |
getPropertyValue(String property,
IlpGraphicView view,
IlpClass bclass,
IlpAttribute battr)
Retrieves the value of a styling property for a given a business attribute.
|
Object |
getPropertyValue(String property,
IlpGraphicView view,
IlpRepresentationObject ro)
Retrieves the value of a styling property for a given representation object in
the graphic view.
|
Object |
getPropertyValue(String property,
IlpGraphicView view,
IlpRepresentationObject ro,
IlpAttribute a)
Retrieves the value of a styling property for a given representation object
in the graphic view.
|
String[] |
getPseudoClasses()
Returns the pseudoclasses used to configure the object in the
given component.
|
boolean |
hasFocus()
Returns whether the object being rendered has focus.
|
boolean |
hasProperty(Object key)
Deprecated.
|
protected String[] |
identifyPseudoClasses()
This method sets the known pseudo-classes accordingly.
|
boolean |
isExpanded()
Returns whether the object being rendered is expanded.
|
boolean |
isSelected()
Returns whether the object being rendered is selected.
|
void |
setProperty(Object key,
Object value)
Deprecated.
|
String |
toString()
Converts the object into a human-readable format.
|
public IlpGraphicRendererContext(boolean selected, boolean expanded, boolean focus, boolean showChildren)
Use the constructor with the IlpGraphicView
parameter if
you use cascading style sheets with custom pseudoclasses.
selected
- Indicates whether the object to be rendered is selected.expanded
- Indicates whether the object is expanded; that is, whether
its child objects are also visible in the view. Always
set to false
in the table view.focus
- Indicates whether the object being rendered has the focus.
Always set to false
in the network view and equipment view.showChildren
- Indicates whether the child objects will be displayed
as part of or in direct connection with the object. Always
set to false
in the tree view and table view.public IlpGraphicRendererContext(IlpGraphicView view, IlpRepresentationObject ro, IlpAttribute attribute, boolean selected, boolean expanded, boolean focus, boolean showChildren)
view
- The graphic viewro
- The representation objectattribute
- The business attributeselected
- Indicates whether the object to be rendered is selected.expanded
- Indicates whether the object is expanded; that is, whether
its child objects are also visible in the view. Always
set to false
in the table view.focus
- Indicates whether the object being rendered has the focus.
Always set to false
in the network view and equipment view.showChildren
- Indicates whether the child objects will be displayed
as part of or in direct connection with the object. Always
set to false
in the tree view and table view.public boolean isSelected()
public boolean hasFocus()
public boolean isExpanded()
public boolean displayChildren()
@Deprecated public Object getProperty(Object key)
null
.@Deprecated public void setProperty(Object key, Object value)
null
, the property is
removed from the context.key
- Property key.value
- Property value; null
indicates that
the value should be removed from the context.@Deprecated public boolean hasProperty(Object key)
key
- Property key being queried.public String toString()
public boolean equals(Object other)
protected String[] identifyPseudoClasses()
public String[] getPseudoClasses()
The pseudoclasses are composed by the list of automatic pseudoclasses
public Object getPropertyValue(String property, IlpGraphicView view, IlpRepresentationObject ro)
Styling properties are defined using cascading style sheets.
property
- Property nameview
- Graphic viewro
- Representation objectIlpStylableGraphicView
,
IlvStylable.setStyleSheets(java.lang.String[])
public Object getPropertyValue(String property, IlpGraphicView view, IlpRepresentationObject ro, IlpAttribute a)
Styling properties are defined using cascading style sheets.
property
- Property identifierview
- Graphic viewro
- Representation objecta
- Business attributeIlpStylableGraphicView
,
IlvStylable.setStyleSheets(java.lang.String[])
public Object getPropertyValue(String property, IlpGraphicView view, IlpClass bclass, IlpAttribute battr)
The business attribute declarations are used by the Table Component to specify the characteristics of the table header.
property
- Property nameview
- Graphic viewbclass
- Business Classbattr
- Business attribute© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.