|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectShapeMarkFactory
public class ShapeMarkFactory
Constructor Summary | |
---|---|
ShapeMarkFactory()
|
Method Summary | |
---|---|
Shape |
getShape(Graphics2D graphics,
Expression symbolUrl,
Feature feature)
Turns the specified URL into an Shape, eventually using the Feature attributes to evaluate the expression, or returns null if
the factory cannot evaluate this symbolUrl. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeMarkFactory()
Method Detail |
---|
public Shape getShape(Graphics2D graphics, Expression symbolUrl, Feature feature) throws Exception
MarkFactory
null
if
the factory cannot evaluate this symbolUrl.
The returned Shape must not exceed the [-0.5, -0.5, 0.5, 0.5] bounds
(will be rescaled according to the
getShape
in interface MarkFactory
symbolUrl
- the expression that will return the symbol name. Once
evaluated the expression should return something like
plainName
or like protocol://path
.
See the actual implementations for details on the kind of
supported name.feature
- The feature that will be used to evaluate the symbolURL
expression (or to extract data from it, think complex attributes, in that
case a visit to the expression and some direct attribute value extraction
might be needed instead)
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |