|
||||||||||
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
abstract class LAbstractGrid
Defines a model of an abstract latex grid.
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/05/2009
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 | |
---|---|
protected double |
gridEndx
The x-maximum values of the axes |
protected double |
gridEndy
The y-maximum values of the axes |
protected double |
gridStartx
The x-minimum values of the axes |
protected double |
gridStarty
The y-minimum values of the axes |
protected int |
labelSize
The size of the labels. |
protected double |
originx
The x-coordinate of the origin of the grid |
protected double |
originy
The y-coordinate of the origin of the grid |
protected boolean |
xLabelSouth
If true, the x label will be displayed at the south of the grid. |
protected boolean |
yLabelWest
If true, the y label will be displayed at the west of the grid. |
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.IShape |
---|
GOLDEN_ANGLE, PPC |
Constructor Summary | |
---|---|
protected |
LAbstractGrid(boolean isUniqueID,
IPoint pt)
Creates an abstract grid. |
Method Summary | |
---|---|
void |
copy(IShape s)
Copies a shape using another. |
IPoint |
getBottomRightPoint()
|
IPoint |
getGridEnd()
|
double |
getGridEndX()
|
double |
getGridEndY()
|
double |
getGridMaxX()
|
double |
getGridMaxY()
|
double |
getGridMinX()
|
double |
getGridMinY()
|
IPoint |
getGridStart()
|
double |
getGridStartX()
|
double |
getGridStartY()
|
int |
getLabelsSize()
|
double |
getOriginX()
|
double |
getOriginY()
|
IPoint |
getTopLeftPoint()
|
IPoint |
getTopRightPoint()
|
boolean |
isParametersEquals(IShape s,
boolean considerShadow)
Checks if the parameters of the shapes are equals. |
boolean |
isXLabelSouth()
|
boolean |
isYLabelWest()
|
void |
mirrorHorizontal(IPoint origin)
Returns horizontally the shape. |
void |
mirrorVertical(IPoint origin)
Returns vertically the shape. |
void |
setGridEnd(double x,
double y)
|
void |
setGridEndX(double x)
|
void |
setGridEndY(double y)
|
void |
setGridStart(double x,
double y)
|
void |
setGridStartX(double x)
|
void |
setGridStartY(double y)
|
void |
setLabelsSize(int labelsSize)
Defines the size of the labels. |
void |
setOrigin(double x,
double y)
|
void |
setOriginX(double x)
|
void |
setOriginY(double y)
|
void |
setXLabelSouth(boolean isXLabelSouth)
|
void |
setYLabelWest(boolean isYLabelWest)
|
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 |
---|
getStep |
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 boolean xLabelSouth
protected boolean yLabelWest
protected double gridStartx
protected double gridStarty
protected double gridEndx
protected double gridEndy
protected double originx
protected double originy
protected int labelSize
Constructor Detail |
---|
protected LAbstractGrid(boolean isUniqueID, IPoint pt)
isUniqueID
- True: the model will have a unique ID.pt
- The positionMethod Detail |
---|
public double getGridMinX()
getGridMinX
in interface IStandardGrid
public double getGridMaxX()
getGridMaxX
in interface IStandardGrid
public double getGridMinY()
getGridMinY
in interface IStandardGrid
public double getGridMaxY()
getGridMaxY
in interface IStandardGrid
public IPoint getBottomRightPoint()
getBottomRightPoint
in interface IShape
getBottomRightPoint
in class LShape
public IPoint getTopLeftPoint()
getTopLeftPoint
in interface IShape
getTopLeftPoint
in class LShape
public IPoint getTopRightPoint()
getTopRightPoint
in interface IShape
getTopRightPoint
in class LShape
public void mirrorHorizontal(IPoint origin)
IShape
mirrorHorizontal
in interface IShape
mirrorHorizontal
in class LShape
origin
- The location of the horizontal axe.public void mirrorVertical(IPoint origin)
IShape
mirrorVertical
in interface IShape
mirrorVertical
in class LShape
origin
- The location of the vertical axe.public void setLabelsSize(int labelsSize)
IStandardGrid
setLabelsSize
in interface IStandardGrid
labelsSize
- The new size of the labels.public double getGridEndX()
getGridEndX
in interface IStandardGrid
public double getGridEndY()
getGridEndY
in interface IStandardGrid
public double getGridStartX()
getGridStartX
in interface IStandardGrid
public double getGridStartY()
getGridStartY
in interface IStandardGrid
public int getLabelsSize()
getLabelsSize
in interface IStandardGrid
public double getOriginX()
getOriginX
in interface IStandardGrid
public double getOriginY()
getOriginY
in interface IStandardGrid
public boolean isXLabelSouth()
isXLabelSouth
in interface IStandardGrid
public boolean isYLabelWest()
isYLabelWest
in interface IStandardGrid
public void setGridEnd(double x, double y)
setGridEnd
in interface IStandardGrid
x
- The x-coordinate of the ending point of the grid.y
- The y-coordinate of the ending point of the grid.public void setGridEndX(double x)
setGridEndX
in interface IStandardGrid
x
- The x-coordinate to set.public void setGridEndY(double y)
setGridEndY
in interface IStandardGrid
y
- The y-coordinate to set.public void setGridStart(double x, double y)
setGridStart
in interface IStandardGrid
x
- The x-coordinate of the starting point of the grid.y
- The y-coordinate of the starting point of the grid.public void setGridStartX(double x)
setGridStartX
in interface IStandardGrid
x
- The x-coordinate to set.public void setGridStartY(double y)
setGridStartY
in interface IStandardGrid
y
- The y-coordinate to set.public void setOrigin(double x, double y)
setOrigin
in interface IStandardGrid
x
- The x-coordinate of the origin of the grid.y
- The y-coordinate of the origin of the grid.public void setOriginX(double x)
setOriginX
in interface IStandardGrid
x
- The X-coordinate to set.public void setOriginY(double y)
setOriginY
in interface IStandardGrid
y
- The Y-coordinate to set.public void setXLabelSouth(boolean isXLabelSouth)
setXLabelSouth
in interface IStandardGrid
isXLabelSouth
- the isXLabelSouth to set.public void setYLabelWest(boolean isYLabelWest)
setYLabelWest
in interface IStandardGrid
isYLabelWest
- the isYLabelWest to set.public void copy(IShape s)
IShape
copy
in interface IShape
copy
in class LShape
s
- The shape to copy.public boolean isParametersEquals(IShape s, boolean considerShadow)
IShape
isParametersEquals
in interface IShape
isParametersEquals
in class LShape
s
- The shape to compare.considerShadow
- True if the parameters of the shadows must be considered.
public IPoint getGridStart()
getGridStart
in interface IStandardGrid
public IPoint getGridEnd()
getGridEnd
in interface IStandardGrid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |