net.sf.latexdraw.glib.models.interfaces
Interface IPlot

All Superinterfaces:
IArrowable, IShape, Modifiable

public interface IPlot
extends IShape

Defines an interface that classes defining a plot should implement.

This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

07/03/2009

Since:
3.0
Version:
3.0
Author:
Arnaud BLOUIN

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape
IShape.BorderPos, IShape.FillingStyle, IShape.LineStyle, IShape.Position
 
Field Summary
 
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape
GOLDEN_ANGLE, PPC
 
Method Summary
 IPlot duplicate()
          Creates a duplicate of the shape (however id are not the same).
 java.lang.String getEquation()
           
 double getInterval()
           
 double getMaxX()
           
 double getMinX()
           
 int getNbPoints()
           
 double getXScale()
           
 double getY(double x)
           
 double getYScale()
           
 void setEquation(java.lang.String equation)
           
 void setMaxX(double maxX)
           
 void setMinX(double minX)
           
 void setNbPoints(int nbPoints)
           
 void setXScale(double scale)
           
 void setYScale(double scale)
           
 
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape
addToRotationAngle, copy, getArrowAt, getArrowLine, getArrows, getArrowStyle, getBorderGap, getBordersPosition, getBottomLeftPoint, getBottomRightPoint, getDashSepBlack, getDashSepWhite, getDbleBordCol, getDbleBordSep, getDotSep, getFillingCol, getFillingStyle, getFullBottomRightPoint, getFullTopLeftPoint, getGradAngle, getGradColEnd, getGradColStart, getGradMidPt, getGravityCentre, getHatchingsAngle, getHatchingsCol, getHatchingsSep, getHatchingsWidth, getId, getLineColour, getLineStyle, getOpacity, getPoints, getPtAt, getRotationAngle, getShadowAngle, getShadowCol, getShadowGap, getShadowSize, getThickness, getTopLeftPoint, getTopRightPoint, hasDbleBord, hasGradient, hasHatchings, hasShadow, isArrowable, isBordersMovable, isColourable, isDbleBorderable, isFillable, isFilled, isInteriorStylable, isLineStylable, isParametersEquals, isShadowable, isShowPts, isShowPtsable, isThicknessable, mirrorHorizontal, mirrorVertical, rotate, scale, setArrowStyle, setBordersPosition, setDashSepBlack, setDashSepWhite, setDbleBordCol, setDbleBordSep, setDotSep, setFilled, setFillingCol, setFillingStyle, setGradAngle, setGradColEnd, setGradColStart, setGradMidPt, setHasDbleBord, setHasShadow, setHatchingsAngle, setHatchingsCol, setHatchingsSep, setHatchingsWidth, setId, setLineColour, setLineStyle, setNewId, setOpacity, setRotationAngle, setShadowAngle, setShadowCol, setShadowSize, setShowPts, setThickness, shadowFillsShape, translate
 
Methods inherited from interface org.malai.properties.Modifiable
isModified, setModified
 
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IArrowable
getArrowInset, getArrowLength, getArrowSizeDim, getArrowSizeNum, getBracketNum, getDotSizeDim, getDotSizeNum, getRBracketNum, getTBarSizeDim, getTBarSizeNum, setArrowInset, setArrowLength, setArrowSizeDim, setArrowSizeNum, setBracketNum, setDotSizeDim, setDotSizeNum, setRBracketNum, setTBarSizeDim, setTBarSizeNum
 

Method Detail

duplicate

IPlot duplicate()
Description copied from interface: IShape
Creates a duplicate of the shape (however id are not the same).

Specified by:
duplicate in interface IShape
Returns:
The duplicata.

getInterval

double getInterval()
Returns:
the interval

getEquation

java.lang.String getEquation()
Returns:
the equation.

setEquation

void setEquation(java.lang.String equation)
Parameters:
equation - the equation to set.

getMinX

double getMinX()
Returns:
the minX.

setMinX

void setMinX(double minX)
Parameters:
minX - the minX to set.

getMaxX

double getMaxX()
Returns:
the maxX.

setMaxX

void setMaxX(double maxX)
Parameters:
maxX - the maxX to set.

getNbPoints

int getNbPoints()
Specified by:
getNbPoints in interface IShape
Returns:
the nbPoints.

setNbPoints

void setNbPoints(int nbPoints)
Parameters:
nbPoints - the nbPoints to set.

getXScale

double getXScale()
Returns:
the xScale.

setXScale

void setXScale(double scale)
Parameters:
scale - the xScale to set.

getYScale

double getYScale()
Returns:
the yScale.

setYScale

void setYScale(double scale)
Parameters:
scale - the yScale to set.

getY

double getY(double x)
Parameters:
x - The X coordinate.
Returns:
The corresponding Y coordinate or NaN if a problem occurs.