blob: 8b7c36b1665d8a58a3fb3ca29518adcfaae9ba57 [file] [log] [blame]
/*******************************************************************************
* <copyright>
*
* Copyright (c) 2013, 2013 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API, implementation and documentation
*
* </copyright>
*
*******************************************************************************/
package org.eclipse.fmc.blockdiagram.editor.algorithm.node;
/**
* This class encapsulates all operations on a UShape Agent.
*
* @author Benjamin Schmeling
* @author Heiko Witteborg
*
*/
public class UAgentAlgorithm extends AbstractUPolygonAlgorithm implements
AgentAlgorithm {
// ----------------------------------------
// ----------- Graphics Node --------------
// TODO overwrite constants & remove getters?
public static final int UAGENT_MINIMUM_WIDTH = 30;
public static final int UAGENT_MINIMUM_HEIGHT = 30;
public static final int UAGENT_DEFAULT_WIDTH = 90;
public static final int UAGENT_DEFAULT_HEIGHT = 70;
public static final int UAGENT_DEFAULT_LINEWIDTH = 3;
@Override
/*
* (non-Javadoc)
*
* @see org.eclipse.fmc.blockdiagram.editor.node.GraphicsNode#getMinimumHeight()
*/
public int getMinimumHeight() {
return UAGENT_MINIMUM_HEIGHT;
}
@Override
/*
* (non-Javadoc)
*
* @see org.eclipse.fmc.blockdiagram.editor.node.GraphicsNode#getMinimumWidth()
*/
public int getMinimumWidth() {
return UAGENT_MINIMUM_WIDTH;
}
@Override
/*
* (non-Javadoc)
*
* @see org.eclipse.fmc.blockdiagram.editor.node.GraphicsNode#getDefaultHeight()
*/
public int getDefaultHeight() {
return UAGENT_DEFAULT_HEIGHT;
}
@Override
/*
* (non-Javadoc)
*
* @see org.eclipse.fmc.blockdiagram.editor.node.GraphicsNode#getDefaultWidth()
*/
public int getDefaultWidth() {
return UAGENT_DEFAULT_WIDTH;
}
@Override
/*
* (non-Javadoc)
*
* @see org.eclipse.fmc.blockdiagram.editor.node.GraphicsNode#getDefaultLineWidth()
*/
public int getDefaultLineWidth() {
return UAGENT_DEFAULT_LINEWIDTH;
}
}