Search in sources :

Example 41 with Expression

use of org.opengis.filter.Expression in project geotoolkit by Geomatys.

the class DefaultStyleVisitor method visit.

@Override
public Object visit(final Displacement displacement, Object data) {
    final Expression x = displacement.getDisplacementX();
    if (x != null) {
        visit(x, data);
    }
    final Expression y = displacement.getDisplacementY();
    if (y != null) {
        visit(y, data);
    }
    return data;
}
Also used : Expression(org.opengis.filter.Expression)

Example 42 with Expression

use of org.opengis.filter.Expression in project geotoolkit by Geomatys.

the class DefaultStyleVisitor method visit.

@Override
public Object visit(final Fill fill, Object data) {
    final Expression color = fill.getColor();
    if (color != null) {
        visit(color, data);
    }
    final GraphicFill gf = fill.getGraphicFill();
    if (gf != null) {
        data = gf.accept(this, data);
    }
    final Expression opa = fill.getOpacity();
    if (opa != null) {
        visit(opa, data);
    }
    return data;
}
Also used : Expression(org.opengis.filter.Expression) GraphicFill(org.opengis.style.GraphicFill)

Example 43 with Expression

use of org.opengis.filter.Expression in project geotoolkit by Geomatys.

the class ListingPropertyVisitor method visit.

@Override
public Object visit(final AnchorPoint anchorPoint, Object data) {
    final Expression x = anchorPoint.getAnchorPointX();
    if (x != null) {
        visit(x, (Collection<String>) data);
    }
    final Expression y = anchorPoint.getAnchorPointY();
    if (y != null) {
        visit(y, (Collection<String>) data);
    }
    return data;
}
Also used : Expression(org.opengis.filter.Expression)

Example 44 with Expression

use of org.opengis.filter.Expression in project geotoolkit by Geomatys.

the class ListingPropertyVisitor method visit.

@Override
public Object visit(final PointPlacement pointPlacement, Object data) {
    final AnchorPoint ap = pointPlacement.getAnchorPoint();
    if (ap != null) {
        data = ap.accept(this, data);
    }
    final Displacement disp = pointPlacement.getDisplacement();
    if (disp != null) {
        data = disp.accept(this, data);
    }
    final Expression rot = pointPlacement.getRotation();
    if (rot != null) {
        visit(rot, (Collection<String>) data);
    }
    return data;
}
Also used : AnchorPoint(org.opengis.style.AnchorPoint) Expression(org.opengis.filter.Expression) Displacement(org.opengis.style.Displacement)

Example 45 with Expression

use of org.opengis.filter.Expression in project geotoolkit by Geomatys.

the class ListingPropertyVisitor method visit.

@Override
public Object visit(final LinePlacement linePlacement, Object data) {
    final Expression gap = linePlacement.getGap();
    if (gap != null) {
        visit(gap, (Collection<String>) data);
    }
    final Expression igap = linePlacement.getInitialGap();
    if (igap != null) {
        visit(igap, (Collection<String>) data);
    }
    final Expression offset = linePlacement.getPerpendicularOffset();
    if (offset != null) {
        visit(offset, (Collection<String>) data);
    }
    return data;
}
Also used : Expression(org.opengis.filter.Expression)

Aggregations

Expression (org.opengis.filter.Expression)325 Test (org.junit.Test)112 LineString (org.locationtech.jts.geom.LineString)73 Literal (org.opengis.filter.Literal)65 ArrayList (java.util.ArrayList)47 MultiLineString (org.locationtech.jts.geom.MultiLineString)46 Unit (javax.measure.Unit)45 Description (org.opengis.style.Description)40 Fill (org.opengis.style.Fill)38 GraphicFill (org.opengis.style.GraphicFill)38 Stroke (org.opengis.style.Stroke)35 Geometry (org.locationtech.jts.geom.Geometry)31 Displacement (org.opengis.style.Displacement)29 GraphicStroke (org.opengis.style.GraphicStroke)29 ValueReference (org.opengis.filter.ValueReference)27 JAXBElement (javax.xml.bind.JAXBElement)22 LineSymbolizer (org.opengis.style.LineSymbolizer)22 PointSymbolizer (org.opengis.style.PointSymbolizer)22 PolygonSymbolizer (org.opengis.style.PolygonSymbolizer)22 MutableStyle (org.geotoolkit.style.MutableStyle)21