SL Common: narrow generics definition because of tighter java9 checks
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3c7ef471a
commit
04ffc95da7
@ -19,6 +19,6 @@ package org.apache.poi.sl.usermodel;
|
|||||||
|
|
||||||
public interface AutoShape<
|
public interface AutoShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends TextShape<S,P> {
|
> extends TextShape<S,P> {
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;
|
|||||||
|
|
||||||
public interface Background<
|
public interface Background<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Shape<S,P> {
|
> extends Shape<S,P> {
|
||||||
FillStyle getFillStyle();
|
FillStyle getFillStyle();
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;
|
|||||||
|
|
||||||
public interface ConnectorShape<
|
public interface ConnectorShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends SimpleShape<S,P> {
|
> extends SimpleShape<S,P> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ import java.awt.geom.Path2D;
|
|||||||
|
|
||||||
public interface FreeformShape<
|
public interface FreeformShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends AutoShape<S,P> {
|
> extends AutoShape<S,P> {
|
||||||
/**
|
/**
|
||||||
* Gets the shape path.
|
* Gets the shape path.
|
||||||
|
@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;
|
|||||||
|
|
||||||
public interface GraphicalFrame<
|
public interface GraphicalFrame<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Shape<S,P>, PlaceableShape<S,P> {
|
> extends Shape<S,P>, PlaceableShape<S,P> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +21,7 @@ import java.awt.geom.Rectangle2D;
|
|||||||
|
|
||||||
public interface GroupShape<
|
public interface GroupShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Shape<S,P>, ShapeContainer<S,P>, PlaceableShape<S,P> {
|
> extends Shape<S,P>, ShapeContainer<S,P>, PlaceableShape<S,P> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +23,7 @@ package org.apache.poi.sl.usermodel;
|
|||||||
*/
|
*/
|
||||||
public interface Hyperlink<
|
public interface Hyperlink<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends org.apache.poi.common.usermodel.Hyperlink {
|
> extends org.apache.poi.common.usermodel.Hyperlink {
|
||||||
/**
|
/**
|
||||||
* Link to an email
|
* Link to an email
|
||||||
|
@ -27,7 +27,7 @@ import org.apache.poi.util.Internal;
|
|||||||
@Internal
|
@Internal
|
||||||
public interface Line<
|
public interface Line<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends AutoShape<S,P> {
|
> extends AutoShape<S,P> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;
|
|||||||
|
|
||||||
public interface MasterSheet<
|
public interface MasterSheet<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Sheet<S,P> {
|
> extends Sheet<S,P> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public interface Notes<
|
public interface Notes<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Sheet<S,P> {
|
> extends Sheet<S,P> {
|
||||||
List<? extends List<P>> getTextParagraphs();
|
List<? extends List<P>> getTextParagraphs();
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ import java.awt.Insets;
|
|||||||
|
|
||||||
public interface PictureShape<
|
public interface PictureShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends SimpleShape<S,P> {
|
> extends SimpleShape<S,P> {
|
||||||
/**
|
/**
|
||||||
* Returns the picture data for this picture.
|
* Returns the picture data for this picture.
|
||||||
|
@ -21,7 +21,7 @@ import java.awt.geom.Rectangle2D;
|
|||||||
|
|
||||||
public interface PlaceableShape<
|
public interface PlaceableShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> {
|
> {
|
||||||
ShapeContainer<S,P> getParent();
|
ShapeContainer<S,P> getParent();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ import org.apache.poi.sl.usermodel.PaintStyle.SolidPaint;
|
|||||||
|
|
||||||
public interface Shadow<
|
public interface Shadow<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> {
|
> {
|
||||||
SimpleShape<S,P> getShadowParent();
|
SimpleShape<S,P> getShadowParent();
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import java.awt.geom.Rectangle2D;
|
|||||||
|
|
||||||
public interface Shape<
|
public interface Shape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> {
|
> {
|
||||||
ShapeContainer<S,P> getParent();
|
ShapeContainer<S,P> getParent();
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public interface ShapeContainer<
|
public interface ShapeContainer<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Iterable<S> {
|
> extends Iterable<S> {
|
||||||
/**
|
/**
|
||||||
* Returns an list containing all of the elements in this container in proper
|
* Returns an list containing all of the elements in this container in proper
|
||||||
|
@ -25,7 +25,7 @@ import java.awt.Graphics2D;
|
|||||||
*/
|
*/
|
||||||
public interface Sheet<
|
public interface Sheet<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends ShapeContainer<S,P> {
|
> extends ShapeContainer<S,P> {
|
||||||
SlideShow<S,P> getSlideShow();
|
SlideShow<S,P> getSlideShow();
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import org.apache.poi.sl.draw.geom.IAdjustableShape;
|
|||||||
|
|
||||||
public interface SimpleShape<
|
public interface SimpleShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Shape<S,P>, IAdjustableShape, PlaceableShape<S,P> {
|
> extends Shape<S,P>, IAdjustableShape, PlaceableShape<S,P> {
|
||||||
|
|
||||||
FillStyle getFillStyle();
|
FillStyle getFillStyle();
|
||||||
|
@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;
|
|||||||
|
|
||||||
public interface Slide<
|
public interface Slide<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Sheet<S,P> {
|
> extends Sheet<S,P> {
|
||||||
Notes<S,P> getNotes();
|
Notes<S,P> getNotes();
|
||||||
void setNotes(Notes<S,P> notes);
|
void setNotes(Notes<S,P> notes);
|
||||||
|
@ -29,7 +29,7 @@ import org.apache.poi.sl.usermodel.PictureData.PictureType;
|
|||||||
|
|
||||||
public interface SlideShow<
|
public interface SlideShow<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Closeable {
|
> extends Closeable {
|
||||||
Slide<S,P> createSlide() throws IOException;
|
Slide<S,P> createSlide() throws IOException;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import org.apache.poi.sl.usermodel.StrokeStyle.LineDash;
|
|||||||
|
|
||||||
public interface TableCell<
|
public interface TableCell<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends TextShape<S,P> {
|
> extends TextShape<S,P> {
|
||||||
enum BorderEdge { bottom, left, top, right }
|
enum BorderEdge { bottom, left, top, right }
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;
|
|||||||
|
|
||||||
public interface TableShape<
|
public interface TableShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends Shape<S,P>, PlaceableShape<S,P> {
|
> extends Shape<S,P>, PlaceableShape<S,P> {
|
||||||
/**
|
/**
|
||||||
* Return the maximum number of columns.
|
* Return the maximum number of columns.
|
||||||
|
@ -26,6 +26,6 @@ package org.apache.poi.sl.usermodel;
|
|||||||
*/
|
*/
|
||||||
public interface TextBox<
|
public interface TextBox<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends AutoShape<S,P> {
|
> extends AutoShape<S,P> {
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public interface TextShape<
|
public interface TextShape<
|
||||||
S extends Shape<S,P>,
|
S extends Shape<S,P>,
|
||||||
P extends TextParagraph<S,P,?>
|
P extends TextParagraph<S,P,? extends TextRun>
|
||||||
> extends SimpleShape<S,P>, Iterable<P> {
|
> extends SimpleShape<S,P>, Iterable<P> {
|
||||||
/**
|
/**
|
||||||
* Vertical Text Types
|
* Vertical Text Types
|
||||||
@ -159,7 +159,7 @@ public interface TextShape<
|
|||||||
/**
|
/**
|
||||||
* @return the TextParagraphs for this text box
|
* @return the TextParagraphs for this text box
|
||||||
*/
|
*/
|
||||||
List<? extends TextParagraph<S,P,?>> getTextParagraphs();
|
List<P> getTextParagraphs();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return text shape margin
|
* @return text shape margin
|
||||||
|
Loading…
Reference in New Issue
Block a user