All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ctreber.acearth.plugins.markers.PluginMarkers Maven / Gradle / Ivy

Go to download

PlantUML is a component that allows to quickly write : * sequence diagram, * use case diagram, * class diagram, * activity diagram, * component diagram, * state diagram * object diagram

There is a newer version: 8059
Show newest version
package com.ctreber.acearth.plugins.markers;

import java.util.Iterator;
import java.util.List;

import com.ctreber.acearth.plugins.Plugin;

/**
 * 

* Renders markers to the render target. a *

* © 2002 Christian Treber, [email protected] * * @author Christian Treber, [email protected] * */ public class PluginMarkers extends Plugin { private List fMarkers; // private String fMarkerFileName = ACearth.getHomeDir() + // "markersDefault.txt"; public PluginMarkers(List markers) { // ACearth.indent("AC.earth Markers plug-in"); // // ACearth.log("Reading markers"); // // if(fMarkerFileName == null) // { // throw new RuntimeException("Marker file name not set"); // } // try // { // fMarkers = Marker.loadMarkerFile(fMarkerFileName); // } catch(IOException e) // { // ACearth.logError("Marker file not found"); // return; // } fMarkers = markers; // ACearth.outdent(); } public boolean hasGUIP() { return false; } public void render() { if (!fActiveP) { return; } // fRenderTarget.setTextFont(fRenderTarget.getTextFont().deriveFont(9.0f)); Iterator lIt = fMarkers.iterator(); while (lIt.hasNext()) { Marker lMarker = (Marker) lIt.next(); lMarker.render(fRenderTarget, fProjection); } } // public void setMarkerFileName(String pMarkerFileName) // { // fMarkerFileName = pMarkerFileName; // } public String toString() { return "AC.earth Markers plug-in"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy