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

com.ctreber.acearth.scanbit.ScanBit 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

The newest version!
package com.ctreber.acearth.scanbit;

/**
 * 

Instruction to paint points xFrom to xTo on line y. * *

What I don't understand: why do values get summed to determine the * pixel type? * *

© 2002 Christian Treber, [email protected] * @author Christian Treber, [email protected] * */ public class ScanBit implements Comparable { private int fY; private int lXFrom; private int fXTo; private int fType; public ScanBit(int pY, int pLoX, int pHiX, int pType) { fY = pY; lXFrom = pLoX; fXTo = pHiX; fType = pType; } public int compareTo(Object o) { if(o instanceof ScanBit) { ScanBit lOther = (ScanBit)o; return (fY > lOther.fY) ? 1 : (fY < lOther.fY) ? -1 : 0; } throw new IllegalArgumentException("Can't compare with " + o.getClass()); } public int getY() { return fY; } public int getlXFrom() { return lXFrom; } public int getXTo() { return fXTo; } /** *

See values for * @see com.ctreber.acearth.util.Polygon */ public int getType() { return fType; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy