public class PolygonOutliner extends PixOutliner
Modifier and Type | Field and Description |
---|---|
static ConfigKey<MarkerShape> |
MINSHAPE_KEY
Config key for the replacement marker shape.
|
static ConfigKey<Integer> |
MINSIZE_KEY
Config key for the replacement marker threshold size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canPaint(DataSpec dataSpec)
Indicates whether this outliner is willing to provide painters
for a given DataSpec.
|
ShapePainter |
create2DPainter(Surface surf,
DataGeom geom,
DataSpec dataSpec,
Map<AuxScale,Span> auxSpans,
PaperType2D paperType)
Creates a ShapePainter object for plotting onto 2-dimensional surfaces.
|
ShapePainter |
create3DPainter(CubeSurface surf,
DataGeom geom,
DataSpec dataSpec,
Map<AuxScale,Span> auxSpans,
PaperType3D paperType)
Creates a ShapePainter object for plotting onto 3-dimensional surfaces.
|
static PolygonOutliner |
createArrayOutliner(FloatingArrayCoord arrayCoord,
boolean includePos,
PolygonShape polyShape)
Returns an outliner for polygons defined by an array-valued coordinate
providing interleaved coordinates in user data space.
|
static PolygonOutliner |
createFixedOutliner(int np,
PolygonShape polyShape,
int minSize,
MarkerShape minShape)
Returns an outliner for polygons with a fixed number of vertices.
|
static PolygonOutliner |
createPlaneAreaOutliner(AreaCoord<PlaneDataGeom> coord,
int icArea,
PolygonShape polyShape,
int minSize,
MarkerShape minShape)
Returns an outliner for drawing Area objects to a Plane plot.
|
static PolygonOutliner |
createSkyAreaOutliner(AreaCoord<SkyDataGeom> coord,
int icArea,
PolygonShape polyShape,
int minSize,
MarkerShape minShape)
Returns an outliner for drawing Area objects to a Sky plot.
|
static PolygonOutliner |
createSphereAreaOutliner(AreaCoord<SphereDataGeom> areaCoord,
int icArea,
FloatingCoord radialCoord,
int icRadial,
PolygonShape polyShape,
int minSize,
MarkerShape minShape)
Returns an outliner for drawing Area objects to a Sphere plot.
|
boolean |
equals(Object o) |
Map<AuxScale,AuxReader> |
getAuxRangers(DataGeom geom)
Defines what non-axis ranging information is required by this outliner.
|
Icon |
getLegendIcon()
Returns an icon suitable for identifying points painted by this
object in a plot legend.
|
int |
hashCode() |
calculateBinPlan, getBinCounts, getPointCount, getReport
public static final ConfigKey<Integer> MINSIZE_KEY
public static final ConfigKey<MarkerShape> MINSHAPE_KEY
public Icon getLegendIcon()
Outliner
public Map<AuxScale,AuxReader> getAuxRangers(DataGeom geom)
Outliner
geom
- data geometrypublic boolean canPaint(DataSpec dataSpec)
Outliner
dataSpec
- data specification for plotpublic ShapePainter create2DPainter(Surface surf, DataGeom geom, DataSpec dataSpec, Map<AuxScale,Span> auxSpans, PaperType2D paperType)
Outliner
Outliner.canPaint(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the supplied DataSpec.surf
- plot surfacegeom
- coordinate geometrydataSpec
- data specificationauxSpans
- map of scale information required for plotpaperType
- 2-d paper typepublic ShapePainter create3DPainter(CubeSurface surf, DataGeom geom, DataSpec dataSpec, Map<AuxScale,Span> auxSpans, PaperType3D paperType)
Outliner
Outliner.canPaint(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the supplied DataSpec.surf
- 3-d plot surfacegeom
- coordinate geometrydataSpec
- data specificationauxSpans
- map of scale information required for plotpaperType
- 3-d paper typepublic static PolygonOutliner createFixedOutliner(int np, PolygonShape polyShape, int minSize, MarkerShape minShape)
np
- number of verticespolyShape
- polygon painterminSize
- threshold size for replacement markersminShape
- shape for replacement markerspublic static PolygonOutliner createPlaneAreaOutliner(AreaCoord<PlaneDataGeom> coord, int icArea, PolygonShape polyShape, int minSize, MarkerShape minShape)
coord
- coordinate for reading area objectsicArea
- coordinate index in tuple for area coordinatepolyShape
- polygon painterminSize
- threshold size for replacement markersminShape
- shape for replacement markerspublic static PolygonOutliner createSkyAreaOutliner(AreaCoord<SkyDataGeom> coord, int icArea, PolygonShape polyShape, int minSize, MarkerShape minShape)
coord
- coordinate for reading area objectsicArea
- coordinate index in tuple for area coordinatepolyShape
- polygon painterminSize
- threshold size for replacement markersminShape
- shape for replacement markerspublic static PolygonOutliner createSphereAreaOutliner(AreaCoord<SphereDataGeom> areaCoord, int icArea, FloatingCoord radialCoord, int icRadial, PolygonShape polyShape, int minSize, MarkerShape minShape)
areaCoord
- coordinate for reading area objectsicArea
- coordinate index in tuple for area coordinateradialCoord
- coordinate for reading radial distance of areaicRadial
- coordinate index in tuple for radial coordinatepolyShape
- polygon painterminSize
- threshold size for replacement markersminShape
- shape for replacement markerspublic static PolygonOutliner createArrayOutliner(FloatingArrayCoord arrayCoord, boolean includePos, PolygonShape polyShape)
arrayCoord
- array-valued coordinateincludePos
- if true, positional coordinate is included
as the first vertex, if false it is ignoredpolyShape
- polygon painterCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.