|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.glib.models.impl.LShape
net.sf.latexdraw.glib.models.impl.LPositionShape
net.sf.latexdraw.glib.models.impl.LAbstractGrid
net.sf.latexdraw.glib.models.impl.LAxes
class LAxes
Defines a model of axes.
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.
02/13/2008
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IAxes |
---|
IAxes.AxesStyle, IAxes.PlottingStyle, IAxes.TicksStyle |
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
IShape.BorderPos, IShape.FillingStyle, IShape.LineStyle, IShape.Position |
Field Summary | |
---|---|
protected IAxes.AxesStyle |
axesStyle
The style of the axes. |
protected double |
distLabelsX
The distance between each label of the X axe; if 0, the default value will be used (in cm). |
protected double |
distLabelsY
The distance between each label of the Y axe; if 0, the default value will be used (in cm). |
protected double |
incrementX
The increment of X axe (Dx in PST). |
protected double |
incrementY
The increment of Y axe (Dy in PST). |
protected IAxes.PlottingStyle |
labelsDisplayed
Define which labels must be displayed. |
protected boolean |
showOrigin
Define the origin must be shown. |
protected IAxes.PlottingStyle |
ticksDisplayed
Define how the ticks must be shown. |
protected double |
ticksSize
The size of the ticks. |
protected IAxes.TicksStyle |
ticksStyle
Define the style of the ticks. |
Fields inherited from class net.sf.latexdraw.glib.models.impl.LAbstractGrid |
---|
gridEndx, gridEndy, gridStartx, gridStarty, labelSize, originx, originy, xLabelSouth, yLabelWest |
Fields inherited from class net.sf.latexdraw.glib.models.impl.LShape |
---|
arrows, bordersPosition, dashSepBlack, dashSepWhite, dbleBordCol, dbleBordSep, dotSep, fillingCol, fillingStyle, gradAngle, gradColEnd, gradColStart, gradMidPt, hasDbleBord, hasShadow, hatchingsAngle, hatchingsCol, hatchingsSep, hatchingsWidth, id, lineColour, lineStyle, modified, opacity, points, rotationAngle, shadowAngle, shadowCol, shadowSize, showPts, thickness |
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IAxes |
---|
GAP_LABEL |
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
GOLDEN_ANGLE, PPC |
Constructor Summary | |
---|---|
protected |
LAxes(boolean isUniqueID,
IPoint pt)
Creates axes with default values. |
Method Summary | |
---|---|
void |
copy(IShape s)
Copies a shape using another. |
IAxes |
duplicate()
Creates a duplicate of the shape (however id are not the same). |
ILine |
getArrowLine(IArrow arrow)
|
private ILine |
getArrowLineX(boolean leftX)
|
private ILine |
getArrowLineY(boolean topY)
|
IAxes.AxesStyle |
getAxesStyle()
|
IPoint |
getDistLabels()
|
double |
getDistLabelsX()
|
double |
getDistLabelsY()
|
IPoint |
getIncrement()
|
double |
getIncrementX()
|
double |
getIncrementY()
|
IAxes.PlottingStyle |
getLabelsDisplayed()
|
double |
getStep()
|
IAxes.PlottingStyle |
getTicksDisplayed()
|
double |
getTicksSize()
|
IAxes.TicksStyle |
getTicksStyle()
|
boolean |
isArrowable()
|
boolean |
isLineStylable()
|
boolean |
isParametersEquals(IShape s,
boolean considerShadow)
Checks if the parameters of the shapes are equals. |
boolean |
isShowOrigin()
|
boolean |
isThicknessable()
|
void |
setArrowStyle(IArrow.ArrowStyle style,
int position)
Sets the style of the arrow at the given position. |
void |
setAxesStyle(IAxes.AxesStyle axesStyle)
|
void |
setDistLabels(IPoint distLabels)
|
void |
setDistLabelsX(double distLabelsX)
|
void |
setDistLabelsY(double distLabelsY)
|
void |
setIncrement(IPoint increment)
|
void |
setIncrementX(double increment)
|
void |
setIncrementY(double increment)
|
void |
setLabelsDisplayed(IAxes.PlottingStyle labelsDisplayed)
|
void |
setShowOrigin(boolean showOrigin)
|
void |
setTicksDisplayed(IAxes.PlottingStyle ticksDisplayed)
|
void |
setTicksSize(double ticksSize)
|
void |
setTicksStyle(IAxes.TicksStyle ticksStyle)
|
Methods inherited from class net.sf.latexdraw.glib.models.impl.LAbstractGrid |
---|
getBottomRightPoint, getGridEnd, getGridEndX, getGridEndY, getGridMaxX, getGridMaxY, getGridMinX, getGridMinY, getGridStart, getGridStartX, getGridStartY, getLabelsSize, getOriginX, getOriginY, getTopLeftPoint, getTopRightPoint, isXLabelSouth, isYLabelWest, mirrorHorizontal, mirrorVertical, setGridEnd, setGridEndX, setGridEndY, setGridStart, setGridStartX, setGridStartY, setLabelsSize, setOrigin, setOriginX, setOriginY, setXLabelSouth, setYLabelWest |
Methods inherited from class net.sf.latexdraw.glib.models.impl.LPositionShape |
---|
getPosition, getX, getY, setPosition, setPosition, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IStandardGrid |
---|
getGridEnd, getGridEndX, getGridEndY, getGridMaxX, getGridMaxY, getGridMinX, getGridMinY, getGridStart, getGridStartX, getGridStartY, getLabelsSize, getOriginX, getOriginY, isXLabelSouth, isYLabelWest, setGridEnd, setGridEndX, setGridEndY, setGridStart, setGridStartX, setGridStartY, setLabelsSize, setOrigin, setOriginX, setOriginY, setXLabelSouth, setYLabelWest |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IPositionShape |
---|
getPosition, getX, getY, setPosition, setPosition, setX, setY |
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 |
Field Detail |
---|
protected double incrementX
protected double incrementY
protected double distLabelsX
protected double distLabelsY
protected IAxes.PlottingStyle labelsDisplayed
protected boolean showOrigin
protected IAxes.PlottingStyle ticksDisplayed
protected IAxes.TicksStyle ticksStyle
protected double ticksSize
protected IAxes.AxesStyle axesStyle
Constructor Detail |
---|
protected LAxes(boolean isUniqueID, IPoint pt)
pt
- The bottom left position of the axes.isUniqueID
- True: the model will have a unique ID.Method Detail |
---|
public void copy(IShape s)
IShape
copy
in interface IShape
copy
in class LAbstractGrid
s
- The shape to copy.public boolean isParametersEquals(IShape s, boolean considerShadow)
IShape
isParametersEquals
in interface IShape
isParametersEquals
in class LAbstractGrid
s
- The shape to compare.considerShadow
- True if the parameters of the shadows must be considered.
public void setArrowStyle(IArrow.ArrowStyle style, int position)
IShape
setArrowStyle
in interface IShape
setArrowStyle
in class LShape
style
- The style to set.position
- The position of the arrow to modify.public ILine getArrowLine(IArrow arrow)
getArrowLine
in interface IShape
getArrowLine
in class LShape
arrow
- The arrow to analyse.
private ILine getArrowLineY(boolean topY)
private ILine getArrowLineX(boolean leftX)
public IAxes duplicate()
IShape
duplicate
in interface IAxes
duplicate
in interface IShape
duplicate
in class LShape
public IAxes.AxesStyle getAxesStyle()
getAxesStyle
in interface IAxes
public double getDistLabelsX()
getDistLabelsX
in interface IAxes
public double getDistLabelsY()
getDistLabelsY
in interface IAxes
public IAxes.PlottingStyle getLabelsDisplayed()
getLabelsDisplayed
in interface IAxes
public IAxes.PlottingStyle getTicksDisplayed()
getTicksDisplayed
in interface IAxes
public double getTicksSize()
getTicksSize
in interface IAxes
public IAxes.TicksStyle getTicksStyle()
getTicksStyle
in interface IAxes
public boolean isShowOrigin()
isShowOrigin
in interface IAxes
public void setAxesStyle(IAxes.AxesStyle axesStyle)
setAxesStyle
in interface IAxes
axesStyle
- the axesStyle to set.public void setDistLabelsX(double distLabelsX)
setDistLabelsX
in interface IAxes
distLabelsX
- the distLabels.x to set.public void setDistLabelsY(double distLabelsY)
setDistLabelsY
in interface IAxes
distLabelsY
- the distLabels.y to set.public void setIncrementX(double increment)
setIncrementX
in interface IAxes
increment
- the X increment to set.public void setIncrementY(double increment)
setIncrementY
in interface IAxes
increment
- the Y increment to set.public void setLabelsDisplayed(IAxes.PlottingStyle labelsDisplayed)
setLabelsDisplayed
in interface IAxes
labelsDisplayed
- the labelsDisplayed to set.public void setShowOrigin(boolean showOrigin)
setShowOrigin
in interface IAxes
showOrigin
- the showOrigin to set.public void setTicksDisplayed(IAxes.PlottingStyle ticksDisplayed)
setTicksDisplayed
in interface IAxes
ticksDisplayed
- the ticksDisplayed to set.public void setTicksSize(double ticksSize)
setTicksSize
in interface IAxes
ticksSize
- the ticksSize to set.public void setTicksStyle(IAxes.TicksStyle ticksStyle)
setTicksStyle
in interface IAxes
ticksStyle
- the ticksStyle to set.public double getStep()
getStep
in interface IStandardGrid
public boolean isArrowable()
isArrowable
in interface IShape
isArrowable
in class LShape
public boolean isLineStylable()
isLineStylable
in interface IShape
isLineStylable
in class LShape
public boolean isThicknessable()
isThicknessable
in interface IShape
isThicknessable
in class LShape
public double getIncrementX()
getIncrementX
in interface IAxes
public double getIncrementY()
getIncrementY
in interface IAxes
public IPoint getIncrement()
getIncrement
in interface IAxes
public void setIncrement(IPoint increment)
setIncrement
in interface IAxes
increment
- The axes' increment to set.public IPoint getDistLabels()
getDistLabels
in interface IAxes
public void setDistLabels(IPoint distLabels)
setDistLabels
in interface IAxes
distLabels
- The distance between the labels of the axes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |