public class IlvGraphicFactories extends Object
ilog.views.interactor.IlvRectangularObjectFactory
. It allows the
IlvStyleSheetRenderer
to create standard IlvGraphic
objects from
the CSS even if they do not have an empty parameter list
constructor.
In the CSS, use the full factory name and remember to provide an
IlvRect
near the class declaration. The example below creates an
IlvZoomableLabel
at (0,-50)
for a model object with an ID
of "fifty". Note that the other declarations are applied to the
IlvZoomableLabel
created by the factory.
#fifty { class : "ilog.views.sdm.graphic.IlvGraphicFactories$ZoomableLabel"; IlvRect : "0,-50,1,1" ; foreground : black ; label : "fifty" ; font : "sansserif,BOLD,5: ; layer : "0" ; anchor : "TopLeft" : }
These factories complete the core implementations of
IlvRectangularObjectFactory
available in package
ilog.views.interactor
. Missing IlvGraphic
s are those created from
IlvPoint[]
, and containers (IlvGraphicSet
, IlvGraphicHandle
, and so on).
IlvStyleSheetRenderer
,
IlvRectangularObjectFactory
Modifier and Type | Class and Description |
---|---|
static class |
IlvGraphicFactories.ArrowLine
Factory to create an
IlvArrowLine , with the arrow in the
middle. |
static class |
IlvGraphicFactories.BusPolyline
Factory to create an
IlvPolyline . |
static class |
IlvGraphicFactories.CircularScale
Factory to create an
IlvCircularScale . |
static class |
IlvGraphicFactories.Ellipse
Factory to create an ellipse from an
IlvGeneralPath . |
static class |
IlvGraphicFactories.FilledEllipse
Deprecated.
Replaced by
IlvGraphicFactories.Ellipse . |
static class |
IlvGraphicFactories.FilledRectangle
Deprecated.
Replaced by
IlvGraphicFactories.Rectangle . |
static class |
IlvGraphicFactories.Icon
Factory to create an
IlvIcon . |
static class |
IlvGraphicFactories.Label
Factory to create an
IlvLabel . |
static class |
IlvGraphicFactories.Line
Factory to create an
IlvLine . |
static class |
IlvGraphicFactories.Marker
Factory to create an
IlvMarker . |
static class |
IlvGraphicFactories.Rectangle
Factory to create a rectangle from an
IlvGeneralPath . |
static class |
IlvGraphicFactories.RectangularScale
Factory to create an
IlvRectangularScale . |
static class |
IlvGraphicFactories.ReliefLabel
Factory to create an
IlvReliefLabel . |
static class |
IlvGraphicFactories.ShadowLabel
Factory to create an
IlvShadowLabel . |
static class |
IlvGraphicFactories.ZoomableLabel
Factory to create an
IlvZoomableLabel . |
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.