|
Zest 1.5.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEntityStyleProvider
An extension to Label providers for graphs. Gets specific details about the style of an entity before it is created. This style provider offers: -Background and forground colours -Hilighted and unhighlighted colours (colours defined by selections). -Border color. -Highlighted and unhighlighted colours for borders. -Border width -Font for text inside the entity. Any method may return null if the Zest defaults are preferred. NOTE: It is up to the implementors of this interface to dispose of any Colors or Fonts that are created by this class. The dispose() method will be called at the end of the entity's life-cycle so that this class may dispose of its resources.
IColorProvider
Method Summary | |
---|---|
boolean |
fisheyeNode(java.lang.Object entity)
|
Color |
getBackgroundColour(java.lang.Object entity)
Returns the colour that this node should be coloured. |
Color |
getBorderColor(java.lang.Object entity)
Returns the background colour for this entity. |
Color |
getBorderHighlightColor(java.lang.Object entity)
Returns the border highlight colour for this entity. |
int |
getBorderWidth(java.lang.Object entity)
Returns the border width for this entity. |
Color |
getForegroundColour(java.lang.Object entity)
|
Color |
getNodeHighlightColor(java.lang.Object entity)
Returns the forground colour of this entity. |
IFigure |
getTooltip(java.lang.Object entity)
Returns the tooltop for this node. |
Method Detail |
---|
Color getNodeHighlightColor(java.lang.Object entity)
entity
- the entity to be styled.
#dispose()
Color getBorderColor(java.lang.Object entity)
entity
- the entity to be styled.
#dispose()
Color getBorderHighlightColor(java.lang.Object entity)
entity
- the entity to be styled.
#dispose()
int getBorderWidth(java.lang.Object entity)
entity
- the entity to be styled.
Color getBackgroundColour(java.lang.Object entity)
entity
- The entity to be styled
#dispose()
Color getForegroundColour(java.lang.Object entity)
IFigure getTooltip(java.lang.Object entity)
entity
-
boolean fisheyeNode(java.lang.Object entity)
|
Zest 1.5.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |