cb.petal.ObjectView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.crazybeans Show documentation
Show all versions of org.crazybeans Show documentation
Java library to read, modify or create Rational Rose petal files
The newest version!
/**
* Copyright (c) 2001 Markus Dahm
* Copyright (C) 2015-2018 BITPlan GmbH http://www.bitplan.com
*
* This source is part of
* https://github.com/BITPlan/CrazyBeans
* and the license as outlined there applies
*/
package cb.petal;
import java.util.Collection;
/**
* Represents ObjectView object
*
* @version $Id: ObjectView.java,v 1.8 2001/06/22 09:10:36 dahm Exp $
* @author M. Dahm
*/
public class ObjectView extends QuiduView {
public ObjectView(PetalNode parent, Collection params, int tag) {
super(parent, "ObjectView", params, tag);
}
public ObjectView() {
super("ObjectView");
}
public ItemLabel getLabel() {
return (ItemLabel)getProperty("label");
}
public void setLabel(ItemLabel o) {
defineProperty("label", o);
}
public int getAnnotation() {
return getPropertyAsInteger("annotation");
}
public void setAnnotation(int o) {
defineProperty("annotation", o);
}
public int getSubobjects() {
return getPropertyAsInteger("subobjects");
}
public void setSubobjects(int o) {
defineProperty("subobjects", o);
}
public double getXOffset() {
return getPropertyAsFloat("x_offset");
}
public void setXOffset(double o) {
defineProperty("x_offset", o);
}
public double getYOffset() {
return getPropertyAsFloat("y_offset");
}
public void setYOffset(double o) {
defineProperty("y_offset", o);
}
public void accept(Visitor v) {
v.visit(this);
}
}