com.ctreber.acearth.plugins.Plugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
package com.ctreber.acearth.plugins;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import com.ctreber.acearth.ACearth;
import com.ctreber.acearth.gui.PixelCanvas;
import com.ctreber.acearth.projection.Projection;
/**
*
*
* © 2002 Christian Treber, [email protected] (Nov 6, 2002)
* @author Christian Treber, [email protected]
*
*/
abstract public class Plugin implements ActionListener
{
protected ACearth fParent;
protected boolean fActiveP = true;
protected Projection fProjection;
protected PixelCanvas fRenderTarget;
public void actionPerformed(ActionEvent e)
{
}
abstract public boolean hasGUIP();
abstract public void render();
public void setProjection(Projection pProjection)
{
fProjection = pProjection;
}
public void setRenderTarget(PixelCanvas pRenderTarget)
{
fRenderTarget = pRenderTarget;
}
public void setParent(ACearth pParent)
{
fParent = pParent;
}
}