2 * Sixth - System for data storage, computation, exploration and interaction.
3 * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 3 of the GNU Lesser General Public License
7 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base;
12 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape;
14 public class SubShape {
16 private final AbstractShape shape;
17 private boolean visible = true;
18 private String groupIdentifier;
20 public SubShape(AbstractShape shape) {
24 public boolean isUngrouped() {
25 return groupIdentifier == null;
28 public boolean matchesGroup(final String groupIdentifier) {
29 if (this.groupIdentifier == null)
30 return groupIdentifier == null;
32 return this.groupIdentifier.equals(groupIdentifier);
35 public void setGroup(final String groupIdentifier) {
36 this.groupIdentifier = groupIdentifier;
39 public AbstractShape getShape() {
43 public boolean isVisible() {
47 public void setVisible(boolean visible) {
48 this.visible = visible;